update exec name

This commit is contained in:
Alexander Popov 2023-07-31 18:05:20 +03:00
parent 53782a2988
commit a0778de28a
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
6 changed files with 17 additions and 16 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
make-libs-string mc-libs-string
# export data # export data
*.json *.json

View File

@ -1,14 +1,15 @@
CC = gcc CC = gcc
CFLAGS = -O3 CFLAGS = -O3
LIBS = -lcjson LIBS = -lcjson
EXEC = mc-libs-string
all: make-libs-string all: $(EXEC)
make-libs-string: $(EXEC):
$(CC) $(CFLAGS) -o $@ make-libs-string.c $(LIBS) $(CC) $(CFLAGS) -o $(EXEC) ./src/main.c $(LIBS)
tcc: 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: clean:
rm make-libs-string rm $(EXEC)

View File

@ -13,12 +13,12 @@ Utility for parse Minecraft JE game version file (`version.json`).
Minecraft Libraries List Generator Minecraft Libraries List Generator
Usage: Usage:
make-libs-string <version.json> <system> mc-libs-string <version.json> <system>
<system> - w|l|x (windows or linux or osx) <system> - w|l|x (windows or linux or osx)
Other: 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, Utility has two required arguments,
@ -32,5 +32,5 @@ Utility has two required arguments,
version:** version:**
```sh ```sh
./make-libs-string ./1.20.1.json x ./mc-libs-string ./1.20.1.json x
``` ```

View File

@ -13,12 +13,12 @@
Minecraft Libraries List Generator Minecraft Libraries List Generator
Usage: Usage:
make-libs-string <version.json> <system> mc-libs-string <version.json> <system>
<system> - w|l|x (windows or linux or osx) <system> - w|l|x (windows or linux or osx)
Other: 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)**: [1.20.1](https://piston-meta.mojang.com/v1/packages/715ccf3330885e75b205124f09f8712542cbe7e0/1.20.1.json)**:
```sh ```sh
./make-libs-string ./1.20.1.json x ./mc-libs-string ./1.20.1.json x
``` ```

View File

@ -31,7 +31,7 @@
</ItemDefinitionGroup> </ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup> <ItemGroup>
<ClCompile Include="make-libs-list.c" /> <ClCompile Include="src\main.c" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Targets" />
</Project> </Project>

View File

@ -8,7 +8,7 @@
#include <string.h> #include <string.h>
#include <cjson/cJSON.h> #include <cjson/cJSON.h>
#define VERSION "1.0.1" // software version #define VERSION "1.0.2" // software version
void usage(); void usage();
void info(cJSON * json); void info(cJSON * json);
@ -73,10 +73,10 @@ usage()
printf("%s\n%s: %s\n\n", "Minecraft Libraries List Generator", printf("%s\n%s: %s\n\n", "Minecraft Libraries List Generator",
"Version", VERSION); "Version", VERSION);
printf("%s\n", "Usage:"); 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\n", "<system> - w|l|x (windows or linux or osx)");
printf("%s\n", "Other:"); 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 void