mirror of https://github.com/dspinellis/UMLGraph
29 lines
688 B
Bash
Executable File
29 lines
688 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $Id$
|
|
#
|
|
# Create the UMLGraph web pages
|
|
#
|
|
|
|
# For each file appearing in top.html
|
|
for file in `awk -F\" '$4 == "menu"{print $6}' top.html | tr -d '\r'`
|
|
do
|
|
base=`basename $file .html`
|
|
(
|
|
# Highlight menu marker
|
|
cat top.html |
|
|
sed '\|class="menu" href="'$file'"|s/menu/selmenu/
|
|
s/class="menu" href="doc\//class="menu" href="/'
|
|
if expr $file : doc/ >/dev/null
|
|
then
|
|
source=../doc/$base.xml
|
|
sed -n '/<notes>/,/<\/notes>/{;/notes>/d;s/fmtcode.*>/pre>/;p;}' $source
|
|
else
|
|
source=$file
|
|
cat $file
|
|
fi
|
|
sed "s,XDATE,`ident $source | awk '{printf "%s %s", $4, $5}'`," bottom.html
|
|
) >build/$base.html
|
|
xml val -d /pub/schema/xhtml1-transitional.dtd build/$base.html
|
|
done
|