mirror of https://github.com/dspinellis/UMLGraph
31 lines
703 B
Bash
Executable File
31 lines
703 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
#
|
|
# 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,`git log -1 --pretty=%ad $source`," bottom.html
|
|
) >build/$base.html
|
|
xml val -d /pub/schema/xhtml1-transitional.dtd build/$base.html
|
|
done
|
|
|
|
# Copy media files
|
|
cp media/* build
|