projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
484e85d
)
Updated for PHP.
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 29 Mar 2000 15:07:16 +0000
(15:07 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 29 Mar 2000 15:07:16 +0000
(15:07 +0000)
doc/indexdata.sh
patch
|
blob
|
history
diff --git
a/doc/indexdata.sh
b/doc/indexdata.sh
index
f484dcd
..
9538d78
100755
(executable)
--- a/
doc/indexdata.sh
+++ b/
doc/indexdata.sh
@@
-1,7
+1,7
@@
#!/bin/sh
#!/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
# Script to convert documentation to indexdata.dk style...
for i in ${package}*.html; do
- j=`basename $i html`shtml
- sed '-es/<BODY>/<BODY BGCOLOR="#FFFFFF" TEXT="#000000"><TABLE BORDER="0" CELLSPACING="10" CELLPADDING="0"><TR><TD ALIGN="LEFT" VALIGN="TOP" ROWSPAN="2" WIDTH="100" BGCOLOR="#FFFFFF"><!--#config errmsg="No table, contact info@indexdata.dk"--><!--#include virtual="..\/buttonbar.shtml"--><\/TD><TD VALIGN="TOP">/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 "<?php id_footer(); ?>" } { if (body == 1) print $0} /<BODY>/ { body = 1; print "<?php require(\"../id_common.inc\"); id_header(\"YAZ Documentation\"); ?>"; } ' < $i | sed '-es/\(HREF=\"yaz.*\)\.html/\1.php/g' >$j
done
done