From fe89547f305a04c94a1ab4daf3b4299f6acd7962 Mon Sep 17 00:00:00 2001 From: Patrick Jakobsen Date: Fri, 17 Aug 2018 12:22:14 +0200 Subject: [PATCH] Added version information Just change the version in the file version.txt and the build files will reflect the version number --- build.sh | 5 +++-- version.txt | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 version.txt diff --git a/build.sh b/build.sh index 4c07862..c5c333f 100644 --- a/build.sh +++ b/build.sh @@ -10,10 +10,11 @@ cd .. # Bundle everything that isn't: # .sh : a shell script. thin_arg=$1 +version=$(cat ../version.txt) if [[ $thin_arg == "thin" ]]; then - 7za a -tzip ../ZMemory_thin.pk3 -r -x\!*.sh -x\!acs/.gitignore -xr\!acs_source + 7za a -tzip ../ZMemory_v$version\_thin.pk3 -r -x\!*.sh -x\!acs/.gitignore -xr\!acs_source else - 7za a -tzip ../ZMemory.pk3 -r -x\!*.sh -x\!acs/.gitignore + 7za a -tzip ../ZMemory$version.pk3 -r -x\!*.sh -x\!acs/.gitignore fi diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..77d6f4c --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +0.0.0