The following commit has been merged in the master branch:
commit faa1548d4165a368cf7125cf8d3ee82e23fa0aff
Author: James Vega <[email protected]>
Date: Mon Aug 8 21:05:53 2011 -0400
chdist: Redefine Pod::Text's cmd_i to produce cleaner --help output
Signed-off-by: James Vega <[email protected]>
diff --git a/scripts/chdist.pl b/scripts/chdist.pl
index 300ad73..1e03d56 100755
--- a/scripts/chdist.pl
+++ b/scripts/chdist.pl
@@ -137,6 +137,15 @@ use Cwd qw(abs_path cwd);
use Dpkg::Version;
use Pod::Usage;
+# Redefine Pod::Text's cmd_i so pod2usage converts I<...> to <...> instead of
+# *...*
+{
+ package Pod::Text;
+ no warnings qw(redefine);
+
+ sub cmd_i { '<'. $_[2] . '>' }
+}
+
my $progname = basename($0);
sub usage {
--
Git repository for devscripts
--
To unsubscribe, send mail to [email protected].