[med-svn] [Git][med-team/community/helper-scripts][master] create simple defaults for binary name=packagename and title=shortdesc

Andreas Tille gitlab at salsa.debian.org
Tue Jun 12 08:39:17 BST 2018


Andreas Tille pushed to branch master at Debian Med / community / helper-scripts


Commits:
1fad8125 by Andreas Tille at 2018-06-12T09:38:04+02:00
create simple defaults for binary name=packagename and title=shortdesc

- - - - -


1 changed file:

- createmanpages


Changes:

=====================================
createmanpages
=====================================
--- a/createmanpages
+++ b/createmanpages
@@ -3,14 +3,18 @@ MANDIR=debian
 mkdir -p $MANDIR
 
 VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed -e 's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'`
+NAME=`grep "^Description:" debian/control | sed 's/^Description: *//'`
+PROGNAME=`grep "^Package:" debian/control | sed 's/^Package: *//'`
 
 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>
+# If program name is different from package name or title should be
+# different from package short description change this here
+progname=${PROGNAME}
 help2man --no-info --no-discard-stderr --help-option=" " \
-         --name='<optional description of the program>' \
+         --name="$NAME" \
             --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
 echo $AUTHOR >> $MANDIR/${progname}.1
 



View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/1fad812512ceac7cab5cfbdc09f41a415565a479

-- 
View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/1fad812512ceac7cab5cfbdc09f41a415565a479
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180612/00c30769/attachment.html>


More information about the debian-med-commit mailing list