diff options
author | Mark Pulford <mark@kyne.com.au> | 2012-01-20 15:08:36 +0400 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2012-03-04 12:24:35 +0400 |
commit | 1a5473c323230a830bfb8f353b73f1a3168cf9f5 (patch) | |
tree | 8477764bf65d33507977d7e1c1454c2b3b1f949d | |
parent | 1582c219f55f3938d56fc5ca2cc0bb2286630f03 (diff) |
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 @@ # 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" |