Pod-MinimumVersion
view release on metacpan or search on metacpan
inc/MyMakeMakerExtras.pm view on Meta::CPAN
HERE
}
return $parthtml;
};
foreach (@exefiles) {
push @exefiles_html, &$html_rule ($_);
}
foreach (@pmfiles) {
push @pmfiles_html, &$html_rule ($_);
}
$post .= "MY_HTML_FILES = " . join(' ', keys %html_files) . "\n";
$post .= <<'HERE';
html: $(MY_HTML_FILES)
HERE
}
$post .= <<'HERE';
#------------------------------------------------------------------------------
# development stuff -- from inc/MyMakeMakerExtras.pm
version:
$(NOECHO)$(ECHO) $(VERSION)
HERE
my $lint_files = $my_options{'MyMakeMakerExtras_LINT_FILES'};
if (! defined $lint_files) {
$lint_files = 'Makefile.PL $(EXE_FILES) $(TO_INST_PM)';
# would prefer not to lock down the 't' dir existance at ./Makefile.PL
# time, but it's a bit hard without without GNU make extensions
if (-d 't') { $lint_files .= ' t/*.t'; }
if (-d 'xt') { $lint_files .= ' xt/*.t'; }
foreach ('examples', 'devel') {
my $dir = $_;
my $pattern = "$dir/*.pl";
if (glob ($pattern)) {
$lint_files .= " $pattern";
}
}
}
my $podcoverage = '';
foreach (@{$my_options{'MyMakeMakerExtras_Pod_Coverage'}}) {
my $class = $_;
# the "." obscures it from MyExtractUse.pm
$podcoverage .= "\t-\$(PERLRUNINST) -e 'use "."Pod::Coverage package=>$class'\n";
}
$post .= "LINT_FILES = $lint_files\n"
. <<'HERE';
lint:
perl -MO=Lint $(LINT_FILES)
pc:
HERE
# "podchecker -warnings -warnings" too much reporting every < and >
$post .= $podcoverage . <<'HERE';
-podlinkcheck -I lib `ls $(LINT_FILES) | grep -v '\.bash$$|\.desktop$$\.png$$|\.xpm$$'`
-podchecker `ls $(LINT_FILES) | grep -v '\.bash$$|\.desktop$$\.png$$|\.xpm$$'`
perlcritic $(LINT_FILES)
unused:
for i in $(LINT_FILES); do perl -Mwarnings::unused -I lib -c $$i; done
HERE
$post .= <<'HERE';
myman:
-mv MANIFEST MANIFEST.old
touch SIGNATURE
(make manifest 2>&1; diff -u MANIFEST.old MANIFEST) |less
# find files in the dist with mod times this year, but without this year in
# the copyright line
check-copyright-years:
year=`date +%Y`; \
tar tvfz $(DISTVNAME).tar.gz \
| egrep "$$year-|debian/copyright" \
| sed 's:^.*$(DISTVNAME)/::' \
| (result=0; \
while read i; do \
GREP=grep; \
case $$i in \
'' | */ \
| ppport.h \
| debian/changelog | debian/compat | debian/doc-base \
| debian/patches/*.diff | debian/source/format \
| COPYING | MANIFEST* | SIGNATURE | META.yml \
| version.texi | */version.texi \
| *utf16* | examples/rs''s2lea''fnode.conf \
| */MathI''mage/ln2.gz | */MathI''mage/pi.gz \
| *.mo | *.locatedb* | t/samp.*) \
continue ;; \
*.gz) GREP=zgrep ;; \
esac; \
if test -e "$(srcdir)/$$i"; then f="$(srcdir)/$$i"; \
else f="$$i"; fi; \
if ! $$GREP -q "Copyright.*$$year" $$f; then \
echo "$$i":"1: this file"; \
grep Copyright $$f; \
result=1; \
fi; \
done; \
exit $$result)
# only a DEBUG non-zero number is bad, so an expression can copy a debug from
# another package
check-debug-constants:
if egrep -nH 'DEBUG => [1-9]|^[ \t]*(use|no) Smart::Comments' $(EXE_FILES) $(TO_INST_PM) t/*.t xt/*.t; then exit 1; else exit 0; fi
check-spelling:
if find . -type f | egrep -v '(Makefile|dist-deb)' | xargs egrep --color=always -nHi '[g]rabing|[c]usor|[r]efering|[w]riteable|[n]ineth|\b[o]mmitt?ed|[o]mited|[$$][rd]elf|[r]equrie|[n]oticable|[c]ontinous|[e]xistant|[e]xplict|[a]gument|[d]estionatio...
then false; else true; fi
HERE
$post .= "\n";
$post .= ("MY_EXTRA_FILE_PART_OF = "
. ($my_options{'MY_EXTRA_FILE_PART_OF'}||'')
. "\n");
$post .= <<'HERE';
( run in 2.306 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )