[SCM] foo-yc20/master: Rebuild gen/*.cpp with faust. Save & restore original files (Closes: #613044).
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Mon Feb 14 00:02:28 UTC 2011
The following commit has been merged in the master branch:
commit af097dbdca6e4ba090887c42c3b43c48c1412f82
Author: Alessio Treglia <alessio at debian.org>
Date: Mon Feb 14 01:01:02 2011 +0100
Rebuild gen/*.cpp with faust. Save & restore original files (Closes: #613044).
diff --git a/debian/rules b/debian/rules
index 6a9146d..eabaea6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,9 +3,23 @@
LDFLAGS+=-Wl,--as-needed
PREFIX=/usr
+FILES_TO_RESTORE=gen/yc20-dsp-standalone.cpp gen/yc20-dsp-plugin.cpp
+
%:
dh $@ -Smakefile
+override_dh_auto_clean:
+ for i in ${FILES_TO_RESTORE} ; do \
+ [ ! -f $${i}.upstream-orig ] || mv $${i}.upstream-orig $${i} ;\
+ done
+ dh_auto_clean
+
+override_dh_auto_configure:
+ for i in ${FILES_TO_RESTORE} ; do \
+ [ ! -f $${i} ] || mv $${i} $${i}.upstream-orig ;\
+ done
+ $(MAKE) generate-source
+
override_dh_auto_build:
dh_auto_build -- PREFIX=${PREFIX}
--
foo-yc20 packaging
More information about the pkg-multimedia-commits
mailing list