[med-svn] [phast] 02/02: Enhance manpages

Andreas Tille tille at debian.org
Tue Jun 7 21:16:44 UTC 2016


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

tille pushed a commit to branch master
in repository phast.

commit 6cbadf01839445f52baa2e7dd85c42f5035ed084
Author: Andreas Tille <tille at debian.org>
Date:   Tue Jun 7 23:16:28 2016 +0200

    Enhance manpages
---
 debian/help2man_wrapper | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/help2man_wrapper b/debian/help2man_wrapper
index a1756a0..ccb1fce 100755
--- a/debian/help2man_wrapper
+++ b/debian/help2man_wrapper
@@ -19,5 +19,9 @@ cat $tmpout | \
 	    -e 's/.SS "OPTIONS:"/.SH OPTIONS/' \
 	    -e 's/^OPTIONS:/.SH OPTIONS/' \
 	    -e '/^.SH DESCRIPTION/{;N;s/^.SH DESCRIPTION\nPROGRAM: .*\n//;}' \
-	    -e 's/^DESCRIPTION:/.SH DESCRIPTION/'
+	    -e 's/^DESCRIPTION:/.SH DESCRIPTION/' \
+	    -e 's/^USAGE:[[:space:]]*/.SH SYNOPSIS\n/' | \
+	sed -e '/^\.PP/{;N;s/^\.PP\n\.SH/.SH/;}' \
+	    -e '/^"$/d' |
+	sed -e '/^\.SH DESCRIPTION/{;N;s/^\(\.SH DESCRIPTION\)\n\.TP/\1/;}'
 rm $tmpout

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



More information about the debian-med-commit mailing list