2013-03-25 09:49:07 -04:00
|
|
|
#
|
2013-05-08 13:16:50 -04:00
|
|
|
# this is sourced by build and package, and executed from within build/{osx,linux}_packaging
|
2013-03-25 09:49:07 -04:00
|
|
|
#
|
|
|
|
|
2013-06-11 11:41:49 -04:00
|
|
|
major_version=`grep -m 1 '^MAJOR = ' ../../wscript | awk '{print $3}' | sed "s/'//g"`
|
|
|
|
minor_version=`grep -m 1 '^MINOR = ' ../../wscript | awk '{print $3}' | sed "s/'//g"`
|
|
|
|
release_version=${major_version}.${minor_version}
|
|
|
|
r=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed -e 1d -e "s/[0-9][0-9]*\.[0-9][0-9]*-//"`
|
2013-04-08 12:32:14 -04:00
|
|
|
if echo $r | grep -q -e - ; then
|
|
|
|
revcount=`echo $r | cut -d- -f1`
|
|
|
|
fi
|
2013-03-25 09:49:07 -04:00
|
|
|
commit=`echo $r | cut -d- -f2`
|
2013-04-08 12:50:58 -04:00
|
|
|
version=${release_version}${revcount:+.$revcount}
|
2013-03-25 09:49:07 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Figure out the Build Type
|
|
|
|
#
|
|
|
|
# Note that the name of the cache file may vary from to time
|
|
|
|
#
|
|
|
|
|
|
|
|
if grep -q "DEBUG = True" ../../build/c4che/_cache.py; then
|
|
|
|
DEBUG="T"
|
|
|
|
else
|
|
|
|
DEBUG="F"
|
|
|
|
fi
|