[Pkg-opt-media-team] [dvdisaster] 41/61: Backup and restore mutable files to allow multiple builds.
Takaki Taniguchi
takaki at moszumanska.debian.org
Thu Feb 2 13:48:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
takaki pushed a commit to branch master
in repository dvdisaster.
commit 04ce38ec85abdaac0fff520893f0882f677cda91
Author: Carlos Maddela <e7appew at gmail.com>
Date: Thu Jan 5 07:05:26 2017 +1100
Backup and restore mutable files to allow multiple builds.
---
debian/rules | 11 +++++++++++
debian/source/options | 1 +
2 files changed, 12 insertions(+)
diff --git a/debian/rules b/debian/rules
index ac84ef9..fa26510 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,16 +6,27 @@ include /usr/share/dpkg/buildflags.mk
export DEB_CFLAGS_MAINT_APPEND = $(CPPFLAGS) -Wall -Wno-deprecated-declarations -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+MUTABLE_FILES := build.h $(wildcard locale/*.po)
+
%:
dh $@
override_dh_auto_configure:
+ for f in $(MUTABLE_FILES); do \
+ cp -an $$f $$f.orig; \
+ done
dh_auto_configure -- \
--localedir=\$${prefix}/share/locale \
--docdir=\$${prefix}share/doc \
--docsubdir=dvdisaster-doc/html \
--with-embedded-src-path=no
+override_dh_clean:
+ dh_clean -X.orig
+ for f in $(MUTABLE_FILES); do \
+ test ! -f $$f.orig || mv -f $$f.orig $$f; \
+ done
+
override_dh_auto_build-arch:
make all
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..0266228
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+no-unapply-patches
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opt-media/dvdisaster.git
More information about the Pkg-opt-media-team
mailing list