[liblist-moreutils-perl] 06/07: Make package buildable-twice-in-a-row.
gregor herrmann
gregoa at debian.org
Fri Jun 26 21:35:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository liblist-moreutils-perl.
commit 4a025513ab2b8c705f2f86613f4da20633b4a3f6
Author: gregor herrmann <gregoa at debian.org>
Date: Fri Jun 26 23:31:40 2015 +0200
Make package buildable-twice-in-a-row.
Remove a log which is not cleaned up.
Backup bundled modules which get modified.
---
debian/clean | 1 +
debian/rules | 9 +++++++++
2 files changed, 10 insertions(+)
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..5da17f8
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+config.log
diff --git a/debian/rules b/debian/rules
index abde6ef..e84d441 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,3 +3,12 @@
%:
dh $@
+override_dh_clean:
+ dh_clean
+ [ ! -e $(CURDIR)/inc/latest.pm.save ] || mv -v $(CURDIR)/inc/latest.pm.save $(CURDIR)/inc/latest.pm
+ [ ! -e $(CURDIR)/inc/latest/private.pm.save ] || mv -v $(CURDIR)/inc/latest/private.pm.save $(CURDIR)/inc/latest/private.pm
+
+override_dh_auto_configure:
+ [ ! -e $(CURDIR)/inc/latest.pm ] || cp -v $(CURDIR)/inc/latest.pm $(CURDIR)/inc/latest.pm.save
+ [ ! -e $(CURDIR)/inc/latest/private.pm ] || cp -v $(CURDIR)/inc/latest/private.pm $(CURDIR)/inc/latest/private.pm.save
+ dh_auto_configure
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/liblist-moreutils-perl.git
More information about the Pkg-perl-cvs-commits
mailing list