2 # this is sourced by build and package, and executed from within build/linux_packaging
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}
12 # Figure out the Build Type
14 # Note that the name of the cache file may vary from to time
17 if grep -q "DEBUG = True" ../../build/c4che/_cache.py; then