[Pkg-privacy-commits] [seahorse-nautilus] 13/26: Backup and restore mutable files to allow idempotent builds.

Carlos Maddela maddela-guest at moszumanska.debian.org
Tue Jan 10 22:14:57 UTC 2017


This is an automated email from the git hooks/post-receive script.

maddela-guest pushed a commit to branch master
in repository seahorse-nautilus.

commit 52d3ed2becf2ef5ab4b129cea05223fcb2279c96
Author: Carlos Maddela <e7appew at gmail.com>
Date:   Sun Jan 8 08:47:24 2017 +1100

    Backup and restore mutable files to allow idempotent builds.
---
 debian/rules | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/debian/rules b/debian/rules
index 0d88b5a..0d09158 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,43 @@
 #!/usr/bin/make -f
 
 
+MUTABLE_FILES := \
+	Makefile.in \
+	aclocal.m4 \
+	compile \
+	config.h.in \
+	configure \
+	data/Makefile.in \
+	depcomp \
+	install-sh \
+	ltmain.sh \
+	m4/libtool.m4 \
+	m4/ltoptions.m4 \
+	m4/ltsugar.m4 \
+	m4/ltversion.m4 \
+	m4/lt~obsolete.m4 \
+	missing \
+	nautilus-ext/Makefile.in \
+	tool/Makefile.in \
+	tool/seahorse-pgp-encrypted.desktop.in \
+	tool/seahorse-pgp-keys.desktop.in \
+	tool/seahorse-pgp-signature.desktop.in
+
 %:
 	dh $@
 
+override_dh_autoreconf:
+	for f in $(MUTABLE_FILES); do \
+		cp -an $$f $$f.orig; \
+	done
+	dh_autoreconf
+
+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_install:
 	dh_auto_install
 	find debian/seahorse-nautilus -name '*.la' -exec rm -f {} \;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/seahorse-nautilus.git



More information about the Pkg-privacy-commits mailing list