diff --git a/.gitignore b/.gitignore index a82eb9a..b808db5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -make-libs-string +mc-libs-string # export data *.json diff --git a/Makefile b/Makefile index 57a1e37..207d0e9 100644 --- a/Makefile +++ b/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) diff --git a/README.md b/README.md index 36b0500..ff7ad89 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,12 @@ Utility for parse Minecraft JE game version file (`version.json`). Minecraft Libraries List Generator Usage: - make-libs-string + mc-libs-string - w|l|x (windows or linux or osx) Other: - make-libs-string i - to get version info + mc-libs-string 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 ``` diff --git a/README.ru.md b/README.ru.md index 31446e7..b2c3621 100644 --- a/README.ru.md +++ b/README.ru.md @@ -13,12 +13,12 @@ Minecraft Libraries List Generator Usage: - make-libs-string + mc-libs-string - w|l|x (windows or linux or osx) Other: - make-libs-string i - to get version info + mc-libs-string 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 ``` diff --git a/make-libs-string.vcxproj b/mc-libs-string.vcxproj similarity index 97% rename from make-libs-string.vcxproj rename to mc-libs-string.vcxproj index 13406e6..3a2e441 100644 --- a/make-libs-string.vcxproj +++ b/mc-libs-string.vcxproj @@ -31,7 +31,7 @@ - + diff --git a/make-libs-string.c b/src/main.c similarity index 96% rename from make-libs-string.c rename to src/main.c index 1fca106..73e7e9c 100644 --- a/make-libs-string.c +++ b/src/main.c @@ -8,7 +8,7 @@ #include #include -#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 "); + printf(" %s\n\n", "mc-libs-string "); printf(" %s\n\n", " - w|l|x (windows or linux or osx)"); printf("%s\n", "Other:"); - printf(" %s\n", "make-libs-string i - to get version info"); + printf(" %s\n", "mc-libs-string i - to get version info"); } void