From 670bcd00bdc2b4559fde47a9b38cbb855b89aa48 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 29 Mar 2000 15:07:16 +0000 Subject: [PATCH] Updated for PHP. --- doc/indexdata.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/indexdata.sh b/doc/indexdata.sh index f484dcd..9538d78 100755 --- a/doc/indexdata.sh +++ b/doc/indexdata.sh @@ -1,7 +1,7 @@ #!/bin/sh -# $Id: indexdata.sh,v 1.1 2000-03-03 10:18:50 adam Exp $ +# $Id: indexdata.sh,v 1.2 2000-03-29 15:07:16 adam Exp $ # Script to convert documentation to indexdata.dk style... for i in ${package}*.html; do - j=`basename $i html`shtml - sed '-es//
<\/TD>/g' '-es/<\/BODY>/<\/TD><\/TR><\/TABLE><\/BODY>/g' '-es/\(HREF=\"yaz.*\)\.html/\1.shtml/g' < $i >$j + j=`basename $i html`php + awk 'BEGIN { body = 0 } /<\/BODY/ { body = 0; print "" } { if (body == 1) print $0} // { body = 1; print ""; } ' < $i | sed '-es/\(HREF=\"yaz.*\)\.html/\1.php/g' >$j done -- 1.7.10.4