[med-svn] r5866 - trunk/packages/vienna-rna/trunk/debian
Andreas Tille
tille at alioth.debian.org
Wed Feb 2 22:15:38 UTC 2011
Author: tille
Date: 2011-02-02 22:15:35 +0000 (Wed, 02 Feb 2011)
New Revision: 5866
Modified:
trunk/packages/vienna-rna/trunk/debian/rules
Log:
Alex's code to obtain the manpages via perldoc is way better than mine - I stupidly overlooked the proper option, thanks for pointing this up Alex!; added --no-info to help2man to not point to not existing texinfo page
Modified: trunk/packages/vienna-rna/trunk/debian/rules
===================================================================
--- trunk/packages/vienna-rna/trunk/debian/rules 2011-02-02 22:08:40 UTC (rev 5865)
+++ trunk/packages/vienna-rna/trunk/debian/rules 2011-02-02 22:15:35 UTC (rev 5866)
@@ -31,23 +31,6 @@
override_dh_auto_install:
# rename perl scripts to remove the *.pl extension and create manpage via perldoc
-# for script in `ls Utils/*.pl` ; do \
-# newscript=`basename $${script} .pl` ; \
-# cp -a $${script} $(CURDIR)/debian/$(pkg)/usr/bin/$${newscript} ; \
-# perldoc -oman -F $${script} | \
-# sed -e "s/$${newscript}\.pl/$${newscript}/g" \
-# -e "s/$${newscript} *- */$${newscript} \\- /g" \
-# -e "s/^[A-Z]/.SH &/" -e "1s/^.SH/.TH/" \
-# -e "s/\(.TH $${newscript}\)(1) *\(.*[^ ]\) *$${newscript}.*/\1 \"1\" \"\2\"/i" \
-# -e "s/^ *//" \
-# -e "s/.//g" \
-# > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/$${newscript}.1 ; \
-# if [ ! -s $(CURDIR)/debian/$(pkg)/usr/share/man/man1/$${newscript}.1 ] ; then \
-# rm -f $(CURDIR)/debian/$(pkg)/usr/share/man/man1/$${newscript}.1 ; \
-# fi ; \
-# done
-
-# looks less complicated , but creates a bit bigger files ( includes some metaheader).
for script in `ls Utils/*.pl` ; do \
newscript=`basename $${script} .pl` ; \
cp -a $${script} $(CURDIR)/debian/$(pkg)/usr/bin/$${newscript} ; \
@@ -59,14 +42,10 @@
fi ; \
done
- # Create manpages which have proper name entries in --help output
-# for bin in Kinfold/Kinfold ; do \
-# help2man $(CURDIR)/$${bin} > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/`basename $${bin}`.1 ; \
-# done
# Create manpages which we need to provide proper name strings for individual manpages
- help2man --name="aligning RNA secondary structures" \
+ help2man --name="aligning RNA secondary structures" --no-info \
$(CURDIR)/RNAforester/src/RNAforester > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/RNAforester.1
- help2man --name="Kinetic Folding Program for Nucleic Acids" \
+ help2man --name="Kinetic Folding Program for Nucleic Acids" --no-info \
$(CURDIR)/Kinfold/Kinfold > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/Kinfold.1
# copy manual pages from cluster dir
More information about the debian-med-commit
mailing list