[heroes] 02/03: Preserve the original manpages.

Stephen Kitt skitt at moszumanska.debian.org
Mon Feb 29 19:43:42 UTC 2016


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

skitt pushed a commit to branch master
in repository heroes.

commit 510d5e45a6afe8d5d4524aa4ffc549ef006f2c78
Author: Stephen Kitt <steve at sk2.org>
Date:   Thu Jan 28 09:11:45 2016 +0100

    Preserve the original manpages.
---
 debian/changelog | 2 ++
 debian/clean     | 4 ++--
 debian/rules     | 7 +++++++
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 504931a..0f4ab2b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ heroes (0.21-14) UNRELEASED; urgency=medium
 
   * Handle heroes' permissions in the dh_fixperms override, for
     architecture-dependent builds only.
+  * Preserve the original manpages, help2man can't rebuild the new ones
+    on buildds.
 
  -- Stephen Kitt <skitt at debian.org>  Thu, 28 Jan 2016 08:39:22 +0100
 
diff --git a/debian/clean b/debian/clean
index d5182b3..0440a20 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1,8 +1,8 @@
 doc/heroes.info
 doc/stamp-vti
 doc/version.texi
-man/heroes.6
-man/heroeslvl.6
+heroes.6
+heroeslvl.6
 po/*.gmo
 tests/*.log
 tests/*.trs
diff --git a/debian/rules b/debian/rules
index 19c6ce5..d0ab4ff 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,6 +17,13 @@ override_dh_autoreconf_clean:
 	dh_autoreconf_clean
 	mv mkinstalldirs tools
 
+override_dh_auto_build-arch:
+# Keep the pre-build manpages
+# (heroes needs to touch the home directory which fails on buildds)
+	cp man/*.6 .
+	dh_auto_build
+	mv *.6 man
+
 override_dh_fixperms-arch:
 	dh_fixperms
 	chown root:games debian/heroes/usr/games/heroes

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/heroes.git



More information about the Pkg-games-commits mailing list