Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpx/lua-cjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild-packages.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-packages.sh b/build-packages.sh
index 2dacb8c..f8b47a7 100755
--- a/build-packages.sh
+++ b/build-packages.sh
@@ -7,8 +7,8 @@
# Files requiring a version bump
VERSION_FILES="lua-cjson-2.0devel-1.rockspec lua-cjson.spec lua_cjson.c manual.txt runtests.sh tests/test.lua"
-[ "$1" ] && BRANCH="$1" || BRANCH="`git describe --match '1.[0-9]*'`"
-VERSION="`git describe --match '1.[0-9]*' $BRANCH`"
+[ "$1" ] && BRANCH="$1" || BRANCH="`git describe --match '[1-3].[0-9]*'`"
+VERSION="`git describe --match '[1-3].[0-9]*' $BRANCH`"
VERSION="${VERSION//-/.}"
PREFIX="lua-cjson-$VERSION"