[gmt] 01/02: Only recompress man pages if they exist.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Fri Jun 26 21:12:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository gmt.
commit 40fc351c225721b8c9ee965c5a3ac203c71d7190
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Fri Jun 26 21:05:08 2015 +0200
Only recompress man pages if they exist.
---
debian/changelog | 6 ++++++
debian/rules | 14 +++++++++-----
2 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index ceaad03..ebf61fa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+gmt (5.1.2+dfsg1-1~exp3) UNRELEASED; urgency=medium
+
+ * Only recompress man pages if they exist.
+
+ -- Bas Couwenberg <sebastic at debian.org> Fri, 26 Jun 2015 21:04:28 +0200
+
gmt (5.1.2+dfsg1-1~exp2) experimental; urgency=medium
* Fix removal of empty directory.
diff --git a/debian/rules b/debian/rules
index e78ef68..5504573 100755
--- a/debian/rules
+++ b/debian/rules
@@ -96,9 +96,11 @@ override_dh_auto_install:
debian/tmp/usr/bin/gmt
# Recompress the manpages to not use timestamped gzip
- for section in 1 3 5; do\
+ for section in 1 3 5; do \
for manpage in debian/tmp/usr/share/doc/gmt/man/man$${section}/*.$${section}.gz; do \
- gunzip $${manpage} && gzip -n `echo $${manpage} | sed 's/.gz$$//'` ; \
+ if [ -e "$${manpage}" ] ; then \
+ gunzip $${manpage} && gzip -n `echo $${manpage} | sed 's/.gz$$//'` ; \
+ fi; \
done; \
done
@@ -109,9 +111,11 @@ override_dh_installman:
dh_installman
# Fix gmt_shell_functions.sh man page installation
- mv debian/gmt-common/usr/share/man/sh/man1/gmt_shell_functions.1 \
- debian/gmt-common/usr/share/man/man1/gmt_shell_functions.sh.1
- rm -rf debian/gmt-common/usr/share/man/sh/
+ if [ -e "debian/gmt-common/usr/share/man/sh/man1/gmt_shell_functions.1" ]; then \
+ mv debian/gmt-common/usr/share/man/sh/man1/gmt_shell_functions.1 \
+ debian/gmt-common/usr/share/man/man1/gmt_shell_functions.sh.1 ; \
+ rm -rf debian/gmt-common/usr/share/man/sh/ ; \
+ fi
override_dh_compress:
# Don't compress the pdf files needed for the gmt-doc-pdf package, nor the examples
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/gmt.git
More information about the Pkg-grass-devel
mailing list