Alt-App-makepatch
view release on metacpan or search on metacpan
script/makepatch view on Meta::CPAN
"test" => \$opt_test,
"trace!" => \$opt_trace,
"verbose!" => \$opt_verbose,
);
my $init;
# Process ENV options.
if ( defined ($init = $ENV{MAKEPATCHINIT}) ) {
require Text::ParseWords;
local (@ARGV) = Text::ParseWords::shellwords ($init);
unless ( GetOptions (@o, "rcfile=s" => \$opt_rcfile) &&
@ARGV == 0 ) {
warn ("Error in MAKEPATCHINIT\n");
app_usage (1);
}
else {
trace ("+ INIT: $init\n");
}
}
script/makepatch view on Meta::CPAN
my ($file, $opt, $optref) = @_;
my $rcfile = new IO::File;
unless ( $rcfile->open($file) ) {
die ("$file: $!\n") unless $opt;
return;
}
require Text::ParseWords;
local (@ARGV);
my $ok = 1;
# Intercept Getopt::Long warning messages.
my $warn;
$SIG{__WARN__} = sub { $warn = "@_"; };
# Process the file.
while ( <$rcfile> ) {
# Skip blank and comment lines.
next if /^\s*[;#]/;
( run in 0.520 second using v1.01-cache-2.11-cpan-49f99fa48dc )