[med-svn] [jellyfish1] 08/12: Make sure package builds twice in a row

Andreas Tille tille at debian.org
Tue Nov 17 07:42:08 UTC 2015


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

tille pushed a commit to branch libjsoncpp
in repository jellyfish1.

commit 4255a17c8d5bcd5f8e6bae983f6dbfd65e921b9f
Author: Andreas Tille <tille at debian.org>
Date:   Mon Oct 6 13:30:39 2014 +0200

    Make sure package builds twice in a row
---
 debian/changelog |  1 +
 debian/rules     | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7a10c3c..5623b9f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ jellyfish (2.1.4-1) UNRELEASED; urgency=medium
   * cme fix dpkg-control
   * new upstream version needs autoreconf
   * New Build-Depends: yaggo
+  * debian/rules: Make sure package builds twice in a row
 
  -- Andreas Tille <tille at debian.org>  Sat, 04 Oct 2014 19:06:43 +0200
 
diff --git a/debian/rules b/debian/rules
index 2591d2a..1ccf5f9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,3 +7,16 @@ export DH_OPTIONS
 
 override_dh_install:
 	dh_install -X*.a -X*.la -Xpkgconfig
+
+override_dh_clean:
+	dh_clean
+	if [ -d debian/tmp_save_tests ] ; then \
+	    mv debian/tmp_save_tests/* tests ; \
+	    rmdir debian/tmp_save_tests ; \
+	fi
+	rm -f tests/compat.sh
+
+override_dh_auto_build:
+	mkdir -p debian/tmp_save_tests
+	cp -a tests/* debian/tmp_save_tests
+	dh_auto_build

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/jellyfish1.git



More information about the debian-med-commit mailing list