Missing $
authorThomas Berezansky <tsbere@mvlc.org>
Sat, 21 May 2011 14:32:43 +0000 (10:32 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Sat, 21 May 2011 14:32:43 +0000 (10:32 -0400)
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
build/tools/apply_version.sh

index bb2e9b4..98dd5ac 100755 (executable)
@@ -13,7 +13,7 @@ if [ $VERSION = "AUTO" ]; then
     VERSION=`echo $GIT_BRANCH | sed 's/^rel_\([0-9]\+\)_\([0-9]\+\)_\([0-9]\+\)_\(.\+\)$/\1.\2.\3-\4/'`
     VERSION=`echo $VERSION | sed 's/^rel_\([0-9]\+\)_\([0-9]\+\)_\([0-9]\+\)$/\1.\2.\3/'`
     VERSION=`echo $VERSION | sed 's/^rel_\([0-9]\+\)_\([0-9]\+\)_\(.\+\)$/\1.\2-\3/'`
-    VERSION=`echo $VERSION | sed 's/^rel_\([0-9]\+\)_\([0-9]\+\)/\1.\2/'`
+    VERSION=`echo $VERSION | sed 's/^rel_\([0-9]\+\)_\([0-9]\+\)$/\1.\2/'`
     if [ "$VERSION" = "$GIT_BRANCH" ]; then
         echo "AUTO VERSION FAILED."
         exit 1