X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=Makefile.PL;h=00ff13d15fe5d78bb995517f4bed1f40fcc0c313;hb=957ed4e3ce3f0f8b0ec04ae0402e41dd11ef4785;hp=93122da7074d746a764ff64692e11d9b6be48489;hpb=bf9ec7e98dd6a164b5a464a62cd61c8ecfcf2e0c;p=webpac2 diff --git a/Makefile.PL b/Makefile.PL index 93122da..00ff13d 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -12,22 +12,33 @@ WriteMakefile( 'Test::More' => 0, 'YAML' => 0, 'File::Slurp' => 0, - 'Log::Log4perl' => 0, - 'Data::Dumper' => 0, + 'Log::Log4perl' => 1.02, 'Cwd' => 0, - 'Text::Iconv' => 0, 'Storable' => 0, 'DBM::Deep' => 0, - 'XML::Simple' => 0, 'Template' => 0, 'Time::HiRes' => 0, 'File::Temp' => 0, 'List::Util' => 0, - 'URI::Escape' => 0, + 'Encode' => 0, 'LWP' => 0, 'File::Path' => 0, - 'Biblio::Isis' => 0.13, - 'MARC::Fast' => 0.02, + 'Biblio::Isis' => 0.24, + 'MARC::Fast' => 0.08, + 'Search::Estraier' => 0.06, + 'List::Util' => 0, + 'Spreadsheet::ParseExcel', => 0, + 'MARC::Record' => 2.0, + 'Data::Dump' => 0, + 'MARC::Lint' => 0, + 'Proc::Queue' => 0, + 'PPI' => 0, + 'XML::LibXML' => 0, + 'Pod::Usage' => 0, + 'Class::Accessor' => 0, + 'JSON' => 0, + 'File::Spec' => 0, + 'Sort::External' => 0, }, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'WebPAC-* pod2html Makefile tags' }, @@ -37,12 +48,23 @@ sub MY::postamble { return <<'MAKE_MORE'; HTML_DIR=pod2html +# no need to include --limit here! +#profile_perl=./run.pl --only ffps --stats +#profile_perl=./run.pl --only ffps/libri --validate conf/validate/ffps-libri +#profile_perl=./run.pl --only ffps --validate-delimiters conf/validate/delimiters/ffps +profile_perl=./run.pl --only ffps --validate conf/validate/ffps-libri --validate-delimiters conf/validate/delimiters/ffps + html: $(TO_INST_PM) - test -e $(HTML_DIR) || mkdir $(HTML_DIR) + test -e $(HTML_DIR) && rm -Rf "$(HTML_DIR)" || true + mkdir "$(HTML_DIR)" + + # add additional html documents + test ! -z "`which svn2html.pl`" && svk update && svn2html.pl > $(HTML_DIR)/Changes.html || true - test ! -z "`which allpod2xhtml.pl`" && allpod2xhtml.pl ./lib $(HTML_DIR) - test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html + test -e $(HTML_DIR)/pod.css || ln -s ../pod.css $(HTML_DIR)/ + + test ! -z "`which allpod2xhtml.pl`" && allpod2xhtml.pl --frames="WebPAC documentation" --existing --css=pod.css ./lib $(HTML_DIR) changelog: svn update && svn -v log > Changes @@ -51,16 +73,26 @@ tags: ctags *.p[ml] */*.p[ml] */*/*.p[ml] sf: - svn2cvs.pl file:///home/dpavlin/private/svn/webpac2/trunk/ :ext:dpavlin@cvs.sourceforge.net:/cvsroot/webpac webpac2 + svn2cvs.pl file:///home/dpavlin/private/svn/webpac2/trunk/ :ext:dpavlin@webpac.cvs.sourceforge.net:/cvsroot/webpac webpac2 config_yml: test ! -e conf/config.yml && ln -s /data/Webpacus/config.yml conf/ || true + #perl -c conf/normalize/*.pl + perl -c conf/normalize/*.pl 2>&1 | grep 'conf/normalize' | grep -v 'OK' | sed -e 's#^.*conf/normalize#conf/normalize#' -e 's#,##' | awk '{ print "+" $3 " " $1 }' | xargs -i echo vi {} run: config_yml + rm -f log ./run.pl --clean --limit 100 -index: config_yml - ./run.pl --clean +full: config_yml + rm -f log + ./run.pl + +profile: all + perl -d:DProf $(profile_perl) --limit 250 && dprofpp -O 50 > profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'` + +profile2: + perl -d:SmallProf $(profile_perl) --limit 100 && sort -k 2nr,2 smallprof.out | vi -R - MAKE_MORE }