diff options
author | Zoltan HERPAI <wigyori@uid0.hu> | 2016-06-24 10:36:36 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2016-06-24 10:36:36 +0200 |
commit | 7df842e2d151254a5a22313567b79e6a4633c59a (patch) | |
tree | 9386c05187a91b18ebb2b7b6e3f1409d1236e5c9 /scripts | |
parent | f82831818b0a3035c1ebfc512bd86069efbeef5c (diff) | |
download | master-187ad058-7df842e2d151254a5a22313567b79e6a4633c59a.tar.gz master-187ad058-7df842e2d151254a5a22313567b79e6a4633c59a.tar.bz2 master-187ad058-7df842e2d151254a5a22313567b79e6a4633c59a.zip |
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 <wigyori@uid0.hu>
Diffstat (limited to 'scripts')
-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" ] } |