Filter
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
{
'Filter::Simple' => '0.88',
'Test::More' => '0.88',
},
resources =>
{
license => 'http://dev.perl.org/licenses/',
repository => 'https://github.com/rurban/Filter',
}}) : ()),
clean =>
{ FILES =>
"t/FilterTry.pm *~ "
."META.yml MYMETA.yml MYMETA.json "
."decrypt/MYMETA.yml decrypt/MYMETA.json decrypt/Makefile.old decrypt/pm_to_blib decrypt/*.c decrypt/*.o "
."tee/MYMETA.yml tee/MYMETA.json tee/Makefile.old tee/pm_to_blib tee/*.c tee/*.o "
."Exec/MYMETA.yml Exec/MYMETA.json Exec/Makefile.old Exec/pm_to_blib Exec/*.c Exec/*.o "
."Call/MYMETA.yml Call/MYMETA.json Call/Makefile.old Call/pm_to_blib Call/*.c Call/*.o"
}
);
sub MY::libscan
{
my $self = shift;
my $path = shift;
return undef
if $path =~ /(~|\.bak)$/ ||
$path =~ /^\..*\.swp$/ ;
return $path;
}
#sub MY::postamble
#{
# '
#
#MyDoubleCheck:
# @echo Checking for $$^W in files
# @perl -ne \' \
# exit 1 if /^\s*local\s*\(\s*\$$\^W\s*\)/; \
# \' ' . " @files || " . ' \
# (echo found unexpected $$^W ; exit 1)
# @echo All is ok.
#
#' ;
#}
sub MY::depend {
"
release : test dist
-git tag -f \$(VERSION)
cpan-upload \$(DISTVNAME).tar\$(SUFFIX)
git push
git push --tags
";
}
sub oldWarnings
{
local ($^I) = ".bak" ;
local (@ARGV) = @_ ;
while (<>)
{
if (/^__END__/)
{
print ;
my $this = $ARGV ;
while (<>)
{
last if $ARGV ne $this ;
print ;
}
}
s/^(\s*)(no\s+warnings)/${1}local (\$^W) = 0; #$2/ ;
s/^(\s*)(use\s+warnings)/${1}local (\$^W) = 1; #$2/ ;
print ;
}
}
sub newWarnings
{
local ($^I) = ".bak" ;
local (@ARGV) = @_ ;
while (<>)
{
if (/^__END__/)
{
my $this = $ARGV ;
print ;
while (<>)
{
last if $ARGV ne $this ;
print ;
}
}
s/^(\s*)local\s*\(\$\^W\)\s*=\s*\d+\s*;\s*#\s*((no|use)\s+warnings.*)/$1$2/ ;
print ;
}
}
( run in 1.293 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )