[med-svn] r5864 - in trunk/packages/vienna-rna/trunk/debian: . patches
Alexandre Mestiashvili
malex-guest at alioth.debian.org
Wed Feb 2 19:43:09 UTC 2011
Author: malex-guest
Date: 2011-02-02 19:43:08 +0000 (Wed, 02 Feb 2011)
New Revision: 5864
Added:
trunk/packages/vienna-rna/trunk/debian/patches/fix_cluster_manpages.patch
Modified:
trunk/packages/vienna-rna/trunk/debian/patches/series
trunk/packages/vienna-rna/trunk/debian/rules
trunk/packages/vienna-rna/trunk/debian/vienna-rna.lintian-overrides
Log:
added 2 manual pages for Cluster (AnalyseDists.1 AnalyseSeqs.1 ) added lintian-ovverides for this 2 pages .
Added: trunk/packages/vienna-rna/trunk/debian/patches/fix_cluster_manpages.patch
===================================================================
--- trunk/packages/vienna-rna/trunk/debian/patches/fix_cluster_manpages.patch (rev 0)
+++ trunk/packages/vienna-rna/trunk/debian/patches/fix_cluster_manpages.patch 2011-02-02 19:43:08 UTC (rev 5864)
@@ -0,0 +1,20 @@
+Index: vienna-rna-1.8.4/Cluster/AnalyseDists.1
+===================================================================
+--- vienna-rna-1.8.4.orig/Cluster/AnalyseDists.1 2011-02-02 20:19:51.000000000 +0100
++++ vienna-rna-1.8.4/Cluster/AnalyseDists.1 2011-02-02 20:21:22.000000000 +0100
+@@ -1,4 +1,4 @@
+-.TH ANALYSEDISTS l
++.TH "ANALYSEDISTS" "1"
+ .ER
+ .SH NAME
+ AnalyseDists \- Analyse a distance matrix
+Index: vienna-rna-1.8.4/Cluster/AnalyseSeqs.1
+===================================================================
+--- vienna-rna-1.8.4.orig/Cluster/AnalyseSeqs.1 2011-02-02 20:21:35.000000000 +0100
++++ vienna-rna-1.8.4/Cluster/AnalyseSeqs.1 2011-02-02 20:21:51.000000000 +0100
+@@ -1,4 +1,4 @@
+-.TH ANALYSESEQS l
++.TH "ANALYSESEQS" "1"
+ .ER
+ .SH NAME
+ AnalyseSeqs \- Analyse a set of sequences of common length
Modified: trunk/packages/vienna-rna/trunk/debian/patches/series
===================================================================
--- trunk/packages/vienna-rna/trunk/debian/patches/series 2011-02-02 16:39:52 UTC (rev 5863)
+++ trunk/packages/vienna-rna/trunk/debian/patches/series 2011-02-02 19:43:08 UTC (rev 5864)
@@ -1,3 +1,4 @@
+fix_cluster_manpages.patch
lintian_messages01.patch
fix_install_relative_path.patch
readseq_exclude.patch
Modified: trunk/packages/vienna-rna/trunk/debian/rules
===================================================================
--- trunk/packages/vienna-rna/trunk/debian/rules 2011-02-02 16:39:52 UTC (rev 5863)
+++ trunk/packages/vienna-rna/trunk/debian/rules 2011-02-02 19:43:08 UTC (rev 5864)
@@ -31,31 +31,47 @@
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} ; \
- perldoc -oman -F $${script} | \
+ perldoc -onroff -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
+
# Create manpages which have proper name entries in --help output
# for bin in Kinfold/Kinfold ; do \
-# help2man --no-info $(CURDIR)/$${bin} > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/`basename $${bin}`.1 ; \
+# 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" --no-info \
+ help2man --name="aligning RNA secondary structures" \
$(CURDIR)/RNAforester/src/RNAforester > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/RNAforester.1
- help2man --name="Kinetic Folding Program for Nucleic Acids" --no-info \
+ help2man --name="Kinetic Folding Program for Nucleic Acids" \
$(CURDIR)/Kinfold/Kinfold > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/Kinfold.1
+# copy manual pages from cluster dir
+ cp $(CURDIR)/Cluster/*.1 $(CURDIR)/debian/$(pkg)/usr/share/man/man1/
+
cd man; $(MAKE) pdf; $(MAKE) html
override_dh_compress:
Modified: trunk/packages/vienna-rna/trunk/debian/vienna-rna.lintian-overrides
===================================================================
--- trunk/packages/vienna-rna/trunk/debian/vienna-rna.lintian-overrides 2011-02-02 16:39:52 UTC (rev 5863)
+++ trunk/packages/vienna-rna/trunk/debian/vienna-rna.lintian-overrides 2011-02-02 19:43:08 UTC (rev 5864)
@@ -5,3 +5,5 @@
# The line is not intended to be broken
vienna-rna: manpage-has-errors-from-man usr/share/man/man1/RNAup.1.gz 140: warning [p 3, 1.0i]: can't break line
+vienna-rna: manpage-has-errors-from-man usr/share/man/man1/AnalyseDists.1.gz 2: warning: macro `ER' not defined
+vienna-rna: manpage-has-errors-from-man usr/share/man/man1/AnalyseSeqs.1.gz 2: warning: macro `ER' not defined
More information about the debian-med-commit
mailing list