aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorZoltan HERPAI <wigyori@uid0.hu>2016-06-24 10:36:36 +0200
committerZoltan HERPAI <wigyori@uid0.hu>2016-06-24 10:36:36 +0200
commit7df842e2d151254a5a22313567b79e6a4633c59a (patch)
tree9386c05187a91b18ebb2b7b6e3f1409d1236e5c9 /scripts
parentf82831818b0a3035c1ebfc512bd86069efbeef5c (diff)
downloadmaster-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-xscripts/getver.sh3
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" ]
}