[Pvfs2-cvs] commit by slang in pvfs2/maint: pvfs2htmlfixup.sh

CVS commit program cvs at parl.clemson.edu
Fri Feb 22 16:17:30 EST 2008


Update of /projects/cvsroot/pvfs2/maint
In directory parlweb1:/web/pvfs.org_new/cvs/pvfs-2-7-branch/maint

Modified Files:
      Tag: pvfs-2-7-branch
	pvfs2htmlfixup.sh 
Log Message:
merge html fixup changes to branch


Index: pvfs2htmlfixup.sh
===================================================================
RCS file: /projects/cvsroot/pvfs2/maint/pvfs2htmlfixup.sh,v
diff -p -u -r1.1.62.2 -r1.1.62.3
--- pvfs2htmlfixup.sh	24 Nov 2007 21:25:12 -0000	1.1.62.2
+++ pvfs2htmlfixup.sh	22 Feb 2008 21:17:30 -0000	1.1.62.3
@@ -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