[med-svn] r13056 - trunk/packages/meme/trunk/debian
Andreas Tille
tille at alioth.debian.org
Thu Feb 21 15:21:52 UTC 2013
Author: tille
Date: 2013-02-21 15:21:52 +0000 (Thu, 21 Feb 2013)
New Revision: 13056
Added:
trunk/packages/meme/trunk/debian/help2man-wrapper
Modified:
trunk/packages/meme/trunk/debian/rules
Log:
Simplify the auto-creation of manpages
Added: trunk/packages/meme/trunk/debian/help2man-wrapper
===================================================================
--- trunk/packages/meme/trunk/debian/help2man-wrapper (rev 0)
+++ trunk/packages/meme/trunk/debian/help2man-wrapper 2013-02-21 15:21:52 UTC (rev 13056)
@@ -0,0 +1,22 @@
+#!/bin/sh
+# Very dirty trick to drain information via help2man even if binary outputs to stderr
+
+if [ $# -ne 2 ] ; then
+ echo "Usage: $0 <binary_name> <description>"
+ exit 1
+fi
+
+pkg=`dpkg-parsechangelog | sed -n 's/^Source: //p'`
+version=`dpkg-parsechangelog -ldebian/changelog | grep Version: | cut -f2 -d' ' | cut -f1 -d-`
+mandir=${PWD}/debian/${pkg}/usr/share/man/man1/
+tmpdir=`mktemp -d`
+
+mkdir -p $tmpdir
+binname=$1
+tmpbin=${tmpdir}/$binname
+echo "#!/bin/sh" > $tmpbin
+echo "cat <<EOT" >> $tmpbin
+${PWD}/debian/${pkg}/usr/bin/$binname 2>> $tmpbin
+chmod 755 $tmpbin
+help2man --no-info --help-option="''" --no-discard-stderr --name="$2" --version-string="${version}" $tmpbin > $mandir/${binname}.1
+rm -rf $tmpdir
Property changes on: trunk/packages/meme/trunk/debian/help2man-wrapper
___________________________________________________________________
Added: svn:executable
+ *
Modified: trunk/packages/meme/trunk/debian/rules
===================================================================
--- trunk/packages/meme/trunk/debian/rules 2013-02-21 15:13:23 UTC (rev 13055)
+++ trunk/packages/meme/trunk/debian/rules 2013-02-21 15:21:52 UTC (rev 13056)
@@ -73,7 +73,6 @@
override_dh_installman:
mkdir -p $(mandir)
- mkdir -p debian/tmp-man
for var in `ls debian/tmp/usr/bin/*` ; do \
if head -n 1 $${var} | grep -q '^#!/usr/bin/perl' ; then pod2man $${var} > $(mandir)/`basename $${var}`.1 ; fi ; \
done
@@ -93,48 +92,14 @@
--name='Load all motifs within a MEME motif file and write to eps' --version-string="$(version)" \
$(CURDIR)/debian/$(pkg)/usr/bin/ceqlogo > $(mandir)/ceqlogo.1
# Very dirty trick to drain information via help2man even if binary outputs to stderr
- binname=clustalw2fasta ; \
- tmpbin=$(CURDIR)/debian/tmp-man/$$binname ; \
- echo "#!/bin/sh" > $$tmpbin ; echo "cat <<EOT" >> $$tmpbin; $(CURDIR)/debian/$(pkg)/usr/bin/$$binname 2>> $$tmpbin; chmod 755 $$tmpbin; \
- help2man --no-info --help-option="''" --no-discard-stderr \
- --name='Converts a multiple alignment in clustalw format into a FASTA file' --version-string="$(version)" \
- $$tmpbin > $(mandir)/$${binname}.1
- binname=clustalw2phylip ; \
- tmpbin=$(CURDIR)/debian/tmp-man/$$binname ; \
- echo "#!/bin/sh" > $$tmpbin ; echo "cat <<EOT" >> $$tmpbin; $(CURDIR)/debian/$(pkg)/usr/bin/$$binname 2>> $$tmpbin; chmod 755 $$tmpbin; \
- help2man --no-info --help-option="''" --no-discard-stderr \
- --name='Converts a multiple alignment in clustalw format into a Phylip file' --version-string="$(version)" \
- $$tmpbin > $(mandir)/$${binname}.1
- help2man --no-info --help-option="''" --no-discard-stderr \
- --name='computes the distribution of priors from a file in MEME PSP format' --version-string="$(version)" \
- $(CURDIR)/debian/$(pkg)/usr/bin/compute-prior-dist > $(mandir)/compute-prior-dist.1
- binname=create-priors ; \
- tmpbin=$(CURDIR)/debian/tmp-man/$$binname ; \
- echo "#!/bin/sh" > $$tmpbin ; echo "cat <<EOT" >> $$tmpbin; $(CURDIR)/debian/$(pkg)/usr/bin/$$binname 2>> $$tmpbin; chmod 755 $$tmpbin; \
- help2man --no-info --help-option="''" --no-discard-stderr \
- --name='converts numeric values defined with respect to one or more DNA sequences into a probabilistic prior' --version-string="$(version)" \
- $$tmpbin > $(mandir)/$${binname}.1
- binname=draw-mhmm ; \
- tmpbin=$(CURDIR)/debian/tmp-man/$$binname ; \
- echo "#!/bin/sh" > $$tmpbin ; echo "cat <<EOT" >> $$tmpbin; $(CURDIR)/debian/$(pkg)/usr/bin/$$binname 2>> $$tmpbin; chmod 755 $$tmpbin; \
- help2man --no-info --help-option="''" --no-discard-stderr \
- --name='convert a given Meta-MEME hidden Markov model into a format suitable for input to graphviz' --version-string="$(version)" \
- $$tmpbin > $(mandir)/$${binname}.1
- binname=dust ; \
- tmpbin=$(CURDIR)/debian/tmp-man/$$binname ; \
- echo "#!/bin/sh" > $$tmpbin ; echo "cat <<EOT" >> $$tmpbin; $(CURDIR)/debian/$(pkg)/usr/bin/$$binname 2>> $$tmpbin; chmod 755 $$tmpbin; \
- help2man --no-info --help-option="''" --no-discard-stderr \
- --name='some component of MEME package without specific description' --version-string="$(version)" \
- $$tmpbin > $(mandir)/$${binname}.1
- binname=fasta-io ; \
- tmpbin=$(CURDIR)/debian/tmp-man/$$binname ; \
- echo "#!/bin/sh" > $$tmpbin ; echo "cat <<EOT" >> $$tmpbin; $(CURDIR)/debian/$(pkg)/usr/bin/$$binname 2>> $$tmpbin; chmod 755 $$tmpbin; \
- help2man --no-info --help-option="''" --no-discard-stderr \
- --name='read a sequence file in FASTA format and writes it to standard out' --version-string="$(version)" \
- $$tmpbin > $(mandir)/$${binname}.1
+ debian/help2man-wrapper clustalw2fasta 'Converts a multiple alignment in clustalw format into a FASTA file'
+ debian/help2man-wrapper clustalw2phylip 'Converts a multiple alignment in clustalw format into a Phylip file'
+ debian/help2man-wrapper create-priors 'converts numeric values defined with respect to one or more DNA sequences into a probabilistic prior'
+ debian/help2man-wrapper draw-mhmm 'convert a given Meta-MEME hidden Markov model into a format suitable for input to graphviz'
+ debian/help2man-wrapper dust 'some component of MEME package without specific description'
+ debian/help2man-wrapper fasta-io 'read a sequence file in FASTA format and writes it to standard out'
# Remove those manpages with zero bytes where pod2man failed in doing a proper job
find $(mandir) -size 0 -delete
- rm -rf debian/tmp-man
dh_installman
override_dh_clean:
More information about the debian-med-commit
mailing list