update exec name
This commit is contained in:
parent
53782a2988
commit
a0778de28a
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
||||
make-libs-string
|
||||
mc-libs-string
|
||||
|
||||
# export data
|
||||
*.json
|
||||
|
11
Makefile
11
Makefile
@ -1,14 +1,15 @@
|
||||
CC = gcc
|
||||
CFLAGS = -O3
|
||||
LIBS = -lcjson
|
||||
EXEC = mc-libs-string
|
||||
|
||||
all: make-libs-string
|
||||
all: $(EXEC)
|
||||
|
||||
make-libs-string:
|
||||
$(CC) $(CFLAGS) -o $@ make-libs-string.c $(LIBS)
|
||||
$(EXEC):
|
||||
$(CC) $(CFLAGS) -o $(EXEC) ./src/main.c $(LIBS)
|
||||
|
||||
tcc:
|
||||
tcc -O3 -o make-libs-string make-libs-string.c ./cJSON/libcjson.a
|
||||
tcc -O3 -o $(EXEC) ./src/main.c ./cJSON/libcjson.a
|
||||
|
||||
clean:
|
||||
rm make-libs-string
|
||||
rm $(EXEC)
|
||||
|
@ -13,12 +13,12 @@ Utility for parse Minecraft JE game version file (`version.json`).
|
||||
Minecraft Libraries List Generator
|
||||
|
||||
Usage:
|
||||
make-libs-string <version.json> <system>
|
||||
mc-libs-string <version.json> <system>
|
||||
|
||||
<system> - w|l|x (windows or linux or osx)
|
||||
|
||||
Other:
|
||||
make-libs-string <version.json> i - to get version info
|
||||
mc-libs-string <version.json> i - to get version info
|
||||
```
|
||||
|
||||
Utility has two required arguments,
|
||||
@ -32,5 +32,5 @@ Utility has two required arguments,
|
||||
version:**
|
||||
|
||||
```sh
|
||||
./make-libs-string ./1.20.1.json x
|
||||
./mc-libs-string ./1.20.1.json x
|
||||
```
|
||||
|
@ -13,12 +13,12 @@
|
||||
Minecraft Libraries List Generator
|
||||
|
||||
Usage:
|
||||
make-libs-string <version.json> <system>
|
||||
mc-libs-string <version.json> <system>
|
||||
|
||||
<system> - w|l|x (windows or linux or osx)
|
||||
|
||||
Other:
|
||||
make-libs-string <version.json> i - to get version info
|
||||
mc-libs-string <version.json> i - to get version info
|
||||
```
|
||||
|
||||
Программа имеет два обязательных аргумента,
|
||||
@ -31,5 +31,5 @@ Other:
|
||||
[1.20.1](https://piston-meta.mojang.com/v1/packages/715ccf3330885e75b205124f09f8712542cbe7e0/1.20.1.json)**:
|
||||
|
||||
```sh
|
||||
./make-libs-string ./1.20.1.json x
|
||||
./mc-libs-string ./1.20.1.json x
|
||||
```
|
||||
|
@ -31,7 +31,7 @@
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ItemGroup>
|
||||
<ClCompile Include="make-libs-list.c" />
|
||||
<ClCompile Include="src\main.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Targets" />
|
||||
</Project>
|
@ -8,7 +8,7 @@
|
||||
#include <string.h>
|
||||
#include <cjson/cJSON.h>
|
||||
|
||||
#define VERSION "1.0.1" // software version
|
||||
#define VERSION "1.0.2" // software version
|
||||
|
||||
void usage();
|
||||
void info(cJSON * json);
|
||||
@ -73,10 +73,10 @@ usage()
|
||||
printf("%s\n%s: %s\n\n", "Minecraft Libraries List Generator",
|
||||
"Version", VERSION);
|
||||
printf("%s\n", "Usage:");
|
||||
printf(" %s\n\n", "make-libs-string <version.json> <system>");
|
||||
printf(" %s\n\n", "mc-libs-string <version.json> <system>");
|
||||
printf(" %s\n\n", "<system> - w|l|x (windows or linux or osx)");
|
||||
printf("%s\n", "Other:");
|
||||
printf(" %s\n", "make-libs-string <version.json> i - to get version info");
|
||||
printf(" %s\n", "mc-libs-string <version.json> i - to get version info");
|
||||
}
|
||||
|
||||
void
|
Loading…
Reference in New Issue
Block a user