2005-09-12 17:12:10 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
SRCDIR=.
|
|
|
|
|
|
|
|
if test -n "$1"
|
|
|
|
then
|
|
|
|
SRCDIR="$1"
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -f "$SRCDIR"/`basename $0`
|
|
|
|
|
|
|
|
if ! test -w "$SRCDIR"
|
|
|
|
then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd "$SRCDIR"
|
|
|
|
|
2005-09-12 17:34:00 +00:00
|
|
|
rm -rf html
|
2005-09-12 21:16:41 +00:00
|
|
|
xsltproc --nonet --xinclude -o html/api.html api/html.xsl api/api.xml
|
|
|
|
xsltproc --nonet --xinclude -o ../man/ api/man.xsl api/api.xml
|
|
|
|
xsltproc --nonet --xinclude -o html/tools.html api/html.xsl tools/tools.xml
|
|
|
|
xsltproc --nonet --xinclude -o ../man/ api/man.xsl tools/tools.xml
|