[med-svn] [subread] 05/06: d/filter.pl: add regex for removeDup man page cleanup no need in colon for USAGE

Alex Mestiashvili malex-guest at moszumanska.debian.org
Fri Apr 24 16:00:18 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 248146877b3b9bf95306887868d4cac371739475
Author: Alexandre Mestiashvili <alex at biotec.tu-dresden.de>
Date:   Fri Apr 24 16:59:27 2015 +0200

    d/filter.pl: add regex for removeDup man page cleanup
     no need in colon for USAGE
---
 debian/filter.pl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/filter.pl b/debian/filter.pl
index bb782e7..b4f824d 100755
--- a/debian/filter.pl
+++ b/debian/filter.pl
@@ -26,7 +26,7 @@ while ( <STDIN> ) {
     # there are no invalid options
     $_ =~ s/([\w\d]*)\:\sinvalid\soption\s--\s\'-\'/$1 $version/g;
     # strip the header or duplicated body of coverageCount
-    $_ =~ s/\.SH\s(DESCRIPTION|SYNOPSIS).*(Usage:\"?|genome\.\n\.PP)/.SH USAGE:\n/gmxs;
+    $_ =~ s/\.SH\s(DESCRIPTION|SYNOPSIS).*(Usage:\"?|genome\.\n\.PP)/.SH USAGE\n/gmxs;
     # strip full path
     $_ =~ s/\\fI\\,\/.*\/bin(\/utilities)?\///gmxs;
     # tidy up help2man removeDuP output:
@@ -35,6 +35,7 @@ while ( <STDIN> ) {
     # 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;
+    $_ =~ s/(\.SH\sUSAGE\n*)(\.IP\n|\s|\.TP\n)([\w\d\\-]*)/$1\\fB$3\\fR/xms;
+    $_ =~ s/removeDup\\\\fR\/\\fP/removeDup\\fR/gmxs;
     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