diff options
-rwxr-xr-x | scripts/getver.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/getver.sh b/scripts/getver.sh index 445a43e8b8..549d529e42 100755 --- a/scripts/getver.sh +++ b/scripts/getver.sh @@ -18,7 +18,8 @@ try_svn() { try_git() { git rev-parse --git-dir >/dev/null 2>&1 || return 1 - REV="$(git describe --tags | sed "s/trunk-\([0-9]*-.*\)/\1/g")" + REV="$(git describe --tags | sed "s/trunk-\([0-9]*\)-.*/\1/g")" + REV="$((REV+12009))" [ -n "$REV" ] } |