From 6fdf5380057b2e9159050ddbb7cd79c86690a6ef Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 29 Mar 2000 15:23:55 +0000 Subject: [PATCH] Further work. --- doc/indexdata.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/indexdata.sh b/doc/indexdata.sh index 9538d78..6c28bdc 100755 --- a/doc/indexdata.sh +++ b/doc/indexdata.sh @@ -1,7 +1,8 @@ #!/bin/sh -# $Id: indexdata.sh,v 1.2 2000-03-29 15:07:16 adam Exp $ +# $Id: indexdata.sh,v 1.3 2000-03-29 15:23:55 adam Exp $ # Script to convert documentation to indexdata.dk style... +package=$1 for i in ${package}*.html; do 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 + awk -v PACKAGE=\"${package}\" 'BEGIN { body = 0 } /<\/BODY/ { body = 0; print "" } { if (body == 1) print $0} // { body = 1; print ""; }' < $i | sed "-es/\(HREF=\"${package}.*\)\.html/\1.php/g" >$j done -- 1.7.10.4