From 6c4c2322bb737ba5a43ca8403c98616ddcabe23e Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sat, 21 Dec 2013 01:49:48 -0500 Subject: [PATCH] Modified tools/version to update package.json and configure.ac --- tools/verset | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tools/verset b/tools/verset index e27ca86..d26f268 100755 --- a/tools/verset +++ b/tools/verset @@ -23,7 +23,9 @@ major="$1" minor="$2" rev="$3" -suffix="$4" +suffix="${4:+-$4}" + +version="$major.$minor.$rev$suffix" # pre-formatted suffix fsuffix= @@ -34,11 +36,17 @@ cat version.js.tpl | sed " s/@MAJOR@/$major/; s/@MINOR@/$minor/; s/@REV@/$rev/; - s/@SUFFIX@/$suffix/; + s/@SUFFIX@/${suffix#-}/; " > ../lib/version.js # output version for docs cat - > ../doc/version.texi <