[med-svn] r20580 - trunk/helper-scripts

Andreas Tille tille at moszumanska.debian.org
Mon Nov 30 10:57:06 UTC 2015


Author: tille
Date: 2015-11-30 10:57:05 +0000 (Mon, 30 Nov 2015)
New Revision: 20580

Modified:
   trunk/helper-scripts/createmanpages
Log:
Enhance manpage creation script


Modified: trunk/helper-scripts/createmanpages
===================================================================
--- trunk/helper-scripts/createmanpages	2015-11-30 09:18:02 UTC (rev 20579)
+++ trunk/helper-scripts/createmanpages	2015-11-30 10:57:05 UTC (rev 20580)
@@ -4,9 +4,15 @@
 
 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=<PROGNAME>
 help2man --no-info --no-discard-stderr --help-option=" " \
          --name='<optional description of the program>' \
-            --version-string="$VERSION" <programname> > $MANDIR/<programname>.1
+            --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
+echo $AUTHOR >> $MANDIR/${progname}.1
 
 cat <<EOT
 Please enhance the help2man output.




More information about the debian-med-commit mailing list