[med-svn] [cd-hit] 01/05: adjust patch to fix help2man
Sascha Steinbiss
satta at debian.org
Sat Jul 1 09:12:24 UTC 2017
This is an automated email from the git hooks/post-receive script.
satta pushed a commit to branch master
in repository cd-hit.
commit fd9a4d4d993fd1974788b59bdde1e367303351fe
Author: Sascha Steinbiss <satta at debian.org>
Date: Sat Jul 1 10:41:29 2017 +0200
adjust patch to fix help2man
---
debian/patches/enable_help2man.patch | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/debian/patches/enable_help2man.patch b/debian/patches/enable_help2man.patch
index 932a4db..c1262b1 100644
--- a/debian/patches/enable_help2man.patch
+++ b/debian/patches/enable_help2man.patch
@@ -1,10 +1,10 @@
-Author: Andreas Tille <tille at debian.org>
-LastChanged: Sun, 11 Aug 2013 10:51:30 +0200
+Author: Andreas Tille <tille at debian.org>, Sascha Steinbiss <satta at debian.org>
+LastChanged: Sat, 01 Jul 2017 10:41:10 +0200
Description: Help help2man to run without producing errors
--- a/cd-hit-2d-para.pl
+++ b/cd-hit-2d-para.pl
-@@ -55,7 +55,7 @@ while ($arg=shift) {
+@@ -55,7 +55,7 @@
elsif ($arg eq "--Q" ) { $queue = shift; }
elsif ($arg eq "--T" ) { $queue_type = shift; }
elsif ($arg eq "--R" ) { $restart_in = shift; }
@@ -15,7 +15,7 @@ Description: Help help2man to run without producing errors
if (not ($seg_no2 >1)) {
--- a/cd-hit-para.pl
+++ b/cd-hit-para.pl
-@@ -52,7 +52,7 @@ while ($arg=shift) {
+@@ -52,7 +52,7 @@
elsif ($arg eq "--Q") { $queue = shift; }
elsif ($arg eq "--T") { $queue_type = shift; }
elsif ($arg eq "--R") { $restart_in = shift; }
@@ -24,3 +24,17 @@ Description: Help help2man to run without producing errors
}
($in and $out) || print_usage();
+--- a/cd-hit-div.pl
++++ b/cd-hit-div.pl
+@@ -4,6 +4,11 @@
+ #or throw away seq
+
+ $in = shift; $in or die "no input file";
++if ($in eq "--help") {
++ print "Usage: $0 IN OUT DIV\n\n";
++ print "Divide a FASTA file into pieces.\n";
++ exit;
++}
+ $out = shift; $out or die "no output file";
+ $div = shift; $div or die "no div number";
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/cd-hit.git
More information about the debian-med-commit
mailing list