[med-svn] [subread] 03/04: d/filter.pl: add regex to strip "./" from usage examples add regex to remove indent and "boldify" the name after USAGE:
Alex Mestiashvili
malex-guest at moszumanska.debian.org
Mon Mar 16 15:29:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
malex-guest pushed a commit to branch master
in repository subread.
commit 2e931f10c5d774396d42a27b77295ce51e83bd1f
Author: Alexandre Mestiashvili <alex at biotec.tu-dresden.de>
Date: Mon Mar 16 15:17:10 2015 +0100
d/filter.pl: add regex to strip "./" from usage examples
add regex to remove indent and "boldify" the name after USAGE:
---
debian/filter.pl | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/debian/filter.pl b/debian/filter.pl
index 8322a44..87b6fee 100755
--- a/debian/filter.pl
+++ b/debian/filter.pl
@@ -27,10 +27,14 @@ while ( <STDIN> ) {
$_ =~ s/([\w\d]*)\:\sinvalid\soption\s--\s\'-\'/$1 $version/g;
# strip the header or duplicated body of coverageCount
$_ =~ s/\.SH\s(DESCRIPTION|SYNOPSIS).*(Usage:\"?|-p1\n\.PP)/.SH USAGE:\n/gmxs;
- # strip full path
+ # strip full path
$_ =~ s/\\fI\\,\/.*\/bin(\/utilities)?\///gmxs;
# tidy up help2man removeDuP output:
- $_ =~ s/Repeated\sRead\sRemoval.*accessible:\s\'\'//xms;
- $_ =~ s/(.SH\sNAME\n[\w\d-]*):/$1/gxms;
+ $_ =~ s/Repeated\sRead\sRemoval.*accessible:\s\'\'//xms;
+ $_ =~ s/(.SH\sNAME\n[\w\d-]*):/$1/gxms;
+ # remove "./" from examples
+ $_ =~ s/(\\\&\.\/)([\w\d-]*)/$2/gxms;
+ # remove indent and "boldify" the name
+ $_ =~ s/(\.SH\sUSAGE:\n*)(\.IP\n|\s|\.TP\n)([\w\d\\-]*)/$1\\fB$3\\fR/xms;
print $_;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/subread.git
More information about the debian-med-commit
mailing list