--- trunk/Makefile.PL 2005/12/05 19:20:04 225 +++ trunk/Makefile.PL 2006/06/26 15:31:04 534 @@ -12,7 +12,7 @@ 'Test::More' => 0, 'YAML' => 0, 'File::Slurp' => 0, - 'Log::Log4perl' => 0, + 'Log::Log4perl' => 1.02, 'Data::Dumper' => 0, 'Cwd' => 0, 'Text::Iconv' => 0, @@ -23,9 +23,14 @@ '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, + 'Search::Estraier' => 0.06, + 'List::Util' => 0, + 'Spreadsheet::ParseExcel', => 0, }, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'WebPAC-* pod2html Makefile tags' }, @@ -35,12 +40,18 @@ return <<'MAKE_MORE'; HTML_DIR=pod2html +profile_perl=./run.pl 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 + + test -e $(HTML_DIR)/pod.css || ln -s ../pod.css $(HTML_DIR)/ - test ! -z "`which allpod2xhtml.pl`" && allpod2xhtml.pl ./lib $(HTML_DIR) - test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html + 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,13 +62,24 @@ sf: svn2cvs.pl file:///home/dpavlin/private/svn/webpac2/trunk/ :ext:dpavlin@cvs.sourceforge.net:/cvsroot/webpac webpac2 -run: - rm -f log +config_yml: test ! -e conf/config.yml && ln -s /data/Webpacus/config.yml conf/ || true - test -d db && rm -Rf db/* || mkdir db - #estcall raw -auth admin admin 'http://localhost:1978/master?action=nodedel&name=webpac2' || true - #estcall raw -auth admin admin 'http://localhost:1978/master?action=nodeadd&name=webpac2&label=WebPAC%20test' || 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 + +full: config_yml + rm -f log ./run.pl +profile: + perl -d:DProf $(profile_perl) --limit 500 && dprofpp > 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 }