[SCM] ardour3/master: Generate revision.cc from debian/rules
adiknoth-guest at users.alioth.debian.org
adiknoth-guest at users.alioth.debian.org
Sat Sep 7 09:10:26 UTC 2013
The following commit has been merged in the master branch:
commit 68817dc45d9334cfd81109d1ac10604e0b7c3759
Author: Adrian Knoth <adi at drcomp.erfurt.thur.de>
Date: Fri Sep 6 17:20:40 2013 +0200
Generate revision.cc from debian/rules
Instead of relying on a patch that needs modification for each new
upstream version, generate the package revision file from debian/rules.
The string will show up in the Help/About window.
diff --git a/debian/rules b/debian/rules
index 3da60c8..761cac4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -64,13 +64,20 @@ clean::
common-configure-arch common-configure-indep:: common-configure-impl
-common-configure-impl:: debian/stamp-waf-configure
+common-configure-impl:: debian/stamp-waf-configure libs/ardour/revision.cc
+
+
+libs/ardour/revision.cc:
+ echo '#include "ardour/revision.h"' > $@
+ echo "namespace ARDOUR { const char* revision = \"${DEB_VERSION}\"; }" >> $@
+
debian/stamp-waf-configure:
chmod +x ./waf-light
./waf-light configure $(waf-configure-options)
touch $@
clean::
rm -f debian/stamp-waf-configure
+ rm -f libs/ardour/revision.cc
# Needed at build time
# (separated in build tools, core, Glib/GTK and audio dependencies)
--
ardour3 packaging
More information about the pkg-multimedia-commits
mailing list