[med-svn] [freebayes] 01/05: Add script to create manpages in separate branch

Andreas Tille tille at debian.org
Sat Jan 14 06:51:00 UTC 2017


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

tille pushed a commit to branch manpages
in repository freebayes.

commit 1613875cece1416456cea37ec7f7ebc9887f91d9
Author: Andreas Tille <tille at debian.org>
Date:   Sat Jan 14 06:54:47 2017 +0100

    Add script to create manpages in separate branch
---
 debian/createmanpages | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/debian/createmanpages b/debian/createmanpages
new file mode 100755
index 0000000..da9db0c
--- /dev/null
+++ b/debian/createmanpages
@@ -0,0 +1,28 @@
+#!/bin/sh
+MANDIR=debian
+mkdir -p $MANDIR
+
+VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed -e 's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'`
+
+AUTHOR=".SH AUTHOR\nThis manpage was written by $DEBFULLNAME for the Debian distribution and
+can be used for any other usage of the program.
+"
+
+progname=bamleftalign
+help2man --no-info --no-discard-stderr  \
+         --name='<optional description of the program>' \
+            --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
+echo $AUTHOR >> $MANDIR/${progname}.1
+
+progname=freebayes
+help2man --no-info --no-discard-stderr  \
+         --name='<optional description of the program>' \
+            --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
+echo $AUTHOR >> $MANDIR/${progname}.1
+
+cat <<EOT
+Please enhance the help2man output.
+The following web page might be helpful in doing so:
+    http://liw.fi/manpages/
+EOT
+

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



More information about the debian-med-commit mailing list