r716@llin: dpavlin | 2006-06-26 17:32:16 +0200
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 26 Jun 2006 15:31:04 +0000 (15:31 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 26 Jun 2006 15:31:04 +0000 (15:31 +0000)
 much better html generation

git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@534 07558da8-63fa-0310-ba24-9fe276d99e06

Makefile.PL

index f3eb441..2261619 100644 (file)
@@ -43,10 +43,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