From 655ea6f06fd999e1637cae4dee6677a92355653b Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 12 Jul 2015 14:35:51 +0200 Subject: [PATCH] Update build script --- get_version.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/get_version.sh b/get_version.sh index 96b2ec3..98ddb96 100755 --- a/get_version.sh +++ b/get_version.sh @@ -1,5 +1,6 @@ #!/bin/sh +MAJOR=0.12 DIRTY="" git update-index -q --ignore-submodules --refresh @@ -29,7 +30,7 @@ then fi fi -VERSION=$(git describe --exact-match 2>/dev/null || echo "0.11-git$(git show -s --pretty=format:%cI.%h | tr -d ':' | tr -d '-' | tr '.' '-' | sed 's/T[0-9\+]*//g')")$DIRTY +VERSION=$(git describe --exact-match 2>/dev/null || echo "$MAJOR-git$(git show -s --pretty=format:%cI.%h | tr -d ':' | tr -d '-' | tr '.' '-' | sed 's/T[0-9\+]*//g')")$DIRTY echo '#define VERSION_STRING "'$VERSION'"' > version.h echo $VERSION