From 7df842e2d151254a5a22313567b79e6a4633c59a Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Fri, 24 Jun 2016 10:36:36 +0200 Subject: scripts: add dirtyhack to getver.sh Add hack to account for the missing commits in the git tree, and try to roughly match the revision numbers continued from the SVN tree. Signed-off-by: Zoltan HERPAI --- scripts/getver.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') 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" ] } -- cgit v1.2.3