[Pvfs2-cvs] commit by slang in pvfs2/maint: pvfs2htmlfixup.sh
CVS commit program
cvs at parl.clemson.edu
Mon Nov 19 16:33:42 EST 2007
Update of /projects/cvsroot/pvfs2/maint
In directory parlweb1:/tmp/cvs-serv31101/maint
Modified Files:
Tag: pvfs-2-7-branch
pvfs2htmlfixup.sh
Log Message:
doc changes, changes to script that fixes the latex2html gen-ed docs.
Index: pvfs2htmlfixup.sh
===================================================================
RCS file: /projects/cvsroot/pvfs2/maint/pvfs2htmlfixup.sh,v
diff -p -u -r1.1 -r1.1.62.1
--- pvfs2htmlfixup.sh 27 Jul 2004 20:38:29 -0000 1.1
+++ pvfs2htmlfixup.sh 19 Nov 2007 21:33:42 -0000 1.1.62.1
@@ -4,5 +4,15 @@
# through latex2html-init . I couldn't find a good way to make latex2html add
# the closing tags and '#include virtual=...' stuff
-perl -p -i -e 's~</HEAD>~<!--#include virtual="style_defs.html" -->\n</HEAD>~' $@
-perl -p -i -e 's~</ADDRESS>~</ADDRESS>\n</td>\n</tr>\n</table>\n<!--#include virtual="bottom_of_page.html" -->\n</td>\n</tr>\n</table>~' $@
+basename=$(echo $@ | sed -e "s|\(.*\)\.html$|\1|")
+target=$(echo $@ | sed -e "s|^.*/\([^/]*\)/[^/]*\.html$|\1|")
+
+cp $basename.html $basename.php
+
+perl -p -i -e 's~</HEAD>~<? include("../../header.php"); ?></HEAD>~' $basename.php
+perl -p -i -e 's~<BODY.*$~<?include("../../top.php"); ?> <body id="documentation">~' $basename.php
+perl -p -i -e 's~^.*top_of_page.*$~~' $basename.php
+perl -p -i -e 's~</ADDRESS>~</ADDRESS></table></table></table><?include("../../bottom.php"); ?>~' $basename.php
+perl -p -i -e 's~ALIGN="CENTER"~ALIGN="LEFT"~' $basename.php
+perl -p -i -e 's~align="center"~align="left"~' $basename.php
+perl -p -i -e "s~$target.html~index.php~" $basename.php
More information about the Pvfs2-cvs
mailing list