merge with master
[ardour.git] / tools / define_versions.sh
1
2 # this is sourced by build and package, and executed from within build/{osx,linux}_packaging
3 #
4
5 release_version=`grep -m 1 '^VERSION = ' ../../wscript | awk '{print $3}' | sed "s/'//g"`
6 r=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed -e 1d -e "s/$release_version-//"`
7 if echo $r | grep -q -e - ; then
8     revcount=`echo $r | cut -d- -f1`
9 fi
10 commit=`echo $r | cut -d- -f2`
11 version=${release_version}${revcount:+.$revcount}
12
13 #
14 # Figure out the Build Type
15 #
16 # Note that the name of the cache file may vary from to time
17 #
18
19 if grep -q "DEBUG = True" ../../build/c4che/_cache.py; then
20         DEBUG="T"
21 else
22         DEBUG="F"
23 fi