[med-svn] [pbgenomicconsensus] 01/01: Make symlinks from *.py.1 manpages to *.1 manpages

Afif Elghraoui afif-guest at moszumanska.debian.org
Tue Sep 15 08:49:45 UTC 2015


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

afif-guest pushed a commit to branch topic/generate-manpages
in repository pbgenomicconsensus.

commit 4ec85933f6172daead0180966a6a17f1d5aab553
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Tue Sep 15 01:46:58 2015 -0700

    Make symlinks from *.py.1 manpages to *.1 manpages
    
    Since symlinks exist to preserve the names of upstream's scripts
    that have language extensions, the manpages also need to be
    adjusted.
---
 debian/rules | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/debian/rules b/debian/rules
index 9226733..f49be10 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,8 @@ include /usr/share/dpkg/default.mk
 export PYBUILD_NAME := $(DEB_SOURCE)
 BINDIR=$(CURDIR)/debian/$(DEB_SOURCE)/usr/bin
 
+MANDIR=usr/share/man/man1
+
 %:
 	LC_ALL=C.UTF-8 dh $@ --with python2 --buildsystem=pybuild
 
@@ -17,3 +19,13 @@ override_dh_install:
 		mv $$script $(BINDIR)/`basename $$script .py`; \
 		ln -s `basename $$script .py` $$script; \
 	done
+
+overrride_dh_link:
+	link_pairs= ; \
+	for script in $(notdir bin/*.py); \
+	do \
+	  link_pairs+= "$(MANDIR)/`basename $$script .py`.1 \
+	               $(MANDIR)/$${script}.1 "; \
+	done; \
+	dh_link --package=$(DEB_SOURCE) $$link_pairs
+	dh_link --remaining-packages

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



More information about the debian-med-commit mailing list