r726@llin: dpavlin | 2006-06-29 17:31:13 +0200
[webpac2] / Makefile.PL
index 68a2301..f812691 100644 (file)
@@ -15,10 +15,8 @@ WriteMakefile(
        'Log::Log4perl' => 1.02,
        'Data::Dumper' => 0,
        'Cwd' => 0,
-       'Text::Iconv' => 0,
        'Storable' => 0,
        'DBM::Deep' => 0,
-       'XML::Simple' => 0,
        'Template' => 0,
        'Time::HiRes' => 0,
        'File::Temp' => 0,
@@ -30,6 +28,8 @@ WriteMakefile(
        'MARC::Fast' => 0.02,
        'Search::Estraier' => 0.06,
        'List::Util' => 0,
+       'Spreadsheet::ParseExcel', => 0,
+       'MARC::Record' => 0,
     },
     dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
     clean               => { FILES => 'WebPAC-* pod2html Makefile tags' },
@@ -42,10 +42,15 @@ 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)"
 
-       test ! -z "`which allpod2xhtml.pl`" && allpod2xhtml.pl ./lib $(HTML_DIR)
-       test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html
+       # 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 --frames="WebPAC documentation" --existing --css=pod.css ./lib $(HTML_DIR)
 
 changelog:
        svn update && svn -v log > Changes
@@ -58,6 +63,8 @@ sf:
 
 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