diff options
author | Mark Pulford <mark@kyne.com.au> | 2012-01-20 21:38:36 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2012-03-04 18:54:35 +1030 |
commit | 1a5473c323230a830bfb8f353b73f1a3168cf9f5 (patch) | |
tree | 8477764bf65d33507977d7e1c1454c2b3b1f949d | |
parent | 1582c219f55f3938d56fc5ca2cc0bb2286630f03 (diff) | |
download | lua-cjson-1a5473c323230a830bfb8f353b73f1a3168cf9f5.tar.gz lua-cjson-1a5473c323230a830bfb8f353b73f1a3168cf9f5.tar.bz2 lua-cjson-1a5473c323230a830bfb8f353b73f1a3168cf9f5.zip |
Support building packages with version tags >1.x
-rwxr-xr-x | build-packages.sh | 4 |
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 @@ | |||
7 | # Files requiring a version bump | 7 | # Files requiring a version bump |
8 | VERSION_FILES="lua-cjson-2.0devel-1.rockspec lua-cjson.spec lua_cjson.c manual.txt runtests.sh tests/test.lua" | 8 | VERSION_FILES="lua-cjson-2.0devel-1.rockspec lua-cjson.spec lua_cjson.c manual.txt runtests.sh tests/test.lua" |
9 | 9 | ||
10 | [ "$1" ] && BRANCH="$1" || BRANCH="`git describe --match '1.[0-9]*'`" | 10 | [ "$1" ] && BRANCH="$1" || BRANCH="`git describe --match '[1-3].[0-9]*'`" |
11 | VERSION="`git describe --match '1.[0-9]*' $BRANCH`" | 11 | VERSION="`git describe --match '[1-3].[0-9]*' $BRANCH`" |
12 | VERSION="${VERSION//-/.}" | 12 | VERSION="${VERSION//-/.}" |
13 | 13 | ||
14 | PREFIX="lua-cjson-$VERSION" | 14 | PREFIX="lua-cjson-$VERSION" |