summaryrefslogtreecommitdiff
path: root/tools/define_versions.sh
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-05-08 13:16:50 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-05-08 13:16:50 -0400
commitcadfc2aee13e14af341dd68f33308a421820c855 (patch)
treeac7692aefe2968a1bd113bd310b01e3f2a5e287c /tools/define_versions.sh
parent4cd27e47336c566d10ec88e80541097059b3c732 (diff)
various miscellany related to versions, gtk2 build and packaging
Diffstat (limited to 'tools/define_versions.sh')
-rw-r--r--tools/define_versions.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/define_versions.sh b/tools/define_versions.sh
new file mode 100644
index 0000000000..860414e0a6
--- /dev/null
+++ b/tools/define_versions.sh
@@ -0,0 +1,23 @@
+#
+# this is sourced by build and package, and executed from within build/{osx,linux}_packaging
+#
+
+release_version=`grep -m 1 '^VERSION = ' ../../wscript | awk '{print $3}' | sed "s/'//g"`
+r=`cut -d'"' -f2 < ../../libs/ardour/revision.cc | sed -e 1d -e "s/$release_version-//"`
+if echo $r | grep -q -e - ; then
+ revcount=`echo $r | cut -d- -f1`
+fi
+commit=`echo $r | cut -d- -f2`
+version=${release_version}${revcount:+.$revcount}
+
+#
+# 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