2 # this is sourced by build and package, and executed from within build/{osx,linux}_packaging
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`
10 commit=`echo $r | cut -d- -f2`
11 version=${release_version}${revcount:+.$revcount}
14 # Figure out the Build Type
16 # Note that the name of the cache file may vary from to time
19 if grep -q "DEBUG = True" ../../build/c4che/_cache.py; then