remove notion of BUILD from build and uninstall scripts
[ardour.git] / tools / linux_packaging / define_versions.sh
1
2 # this is sourced by build and package, and executed from within build/linux_packaging
3 #
4
5 release_version=`grep -m 1 '[^A-Za-z_]LINUX_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 revcount=`echo $r | cut -d- -f1`
8 commit=`echo $r | cut -d- -f2`
9 version=${release_version}.${revcount}
10
11 #
12 # Figure out the Build Type
13 #
14 # Note that the name of the cache file may vary from to time
15 #
16
17 if grep -q "DEBUG = True" ../../build/c4che/_cache.py; then
18         DEBUG="T"
19 else
20         DEBUG="F"
21 fi