13
0

fix definition of release version info in the case where git describe --tags returns a precise tag, rather than tag-REVCOUNT

This commit is contained in:
Paul Davis 2013-04-08 12:32:14 -04:00
parent d79e3a21c6
commit 4b54057569

View File

@ -4,9 +4,11 @@
release_version=`grep -m 1 '[^A-Za-z_]LINUX_VERSION = ' ../../wscript | awk '{print $3}' | sed "s/'//g"`
r=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed -e 1d -e "s/$release_version-//"`
revcount=`echo $r | cut -d- -f1`
if echo $r | grep -q -e - ; then
revcount=`echo $r | cut -d- -f1`
fi
commit=`echo $r | cut -d- -f2`
version=${release_version}.${revcount}
version=${release_version}${revcount:+:.revcount}
#
# Figure out the Build Type