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:
authorMark Pulford <mark@kyne.com.au>2012-01-20 15:08:36 +0400
committerMark Pulford <mark@kyne.com.au>2012-03-04 12:24:35 +0400
commit1a5473c323230a830bfb8f353b73f1a3168cf9f5 (patch)
tree8477764bf65d33507977d7e1c1454c2b3b1f949d
parent1582c219f55f3938d56fc5ca2cc0bb2286630f03 (diff)
Support building packages with version tags >1.x
-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"