[Pvfs2-cvs] commit by slang in pvfs2/maint: pvfs2htmlfixup.sh
CVS commit program
cvs at parl.clemson.edu
Fri Feb 22 16:17:06 EST 2008
Update of /projects/cvsroot/pvfs2/maint
In directory parlweb1:/web/pvfs.org_new/cvs/HEAD/maint
Modified Files:
pvfs2htmlfixup.sh
Log Message:
get htmlfixup working with latest website
Index: pvfs2htmlfixup.sh
===================================================================
RCS file: /projects/cvsroot/pvfs2/maint/pvfs2htmlfixup.sh,v
diff -p -u -r1.1 -r1.2
--- pvfs2htmlfixup.sh 27 Jul 2004 20:38:29 -0000 1.1
+++ pvfs2htmlfixup.sh 22 Feb 2008 21:17:06 -0000 1.2
@@ -4,5 +4,17 @@
# 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|")
+
+prefixes="../../../.."
+
+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