Skip to content
Snippets Groups Projects
makehtmlchunk.sh 711 B
#!/bin/sh
#
# Generate the ROOT User's Guide as multiple HTML files (one per section).

oxygendir="/Applications/oxygen"

docbookdirs="/usr/share/sgml/docbook/xsl-stylesheets-1.75.2 \
             /usr/share/xml/docbook/stylesheet/docbook-xsl \
             /sw/share/xml/xsl/docbook-xsl"

if [ -d "$oxygendir" ]; then
   docbookdirs="$oxygendir/frameworks/docbook/xsl"
fi

for d in $docbookdirs; do
   if [ -d "$d" ]; then
      docbook=$d
   fi
done

if [ -z "$docbook" ]; then
   echo "$0: no docbook installation found"
   exit 1
fi

if [ -d html ]; then
   rm -rf html
fi

mkdir html
cd html

xsltproc --xinclude --output ROOTUsersGuide.html \
   $docbook/html/chunk.xsl \
   ../ROOTUsersGuide.xml

exit 0