Add doc building script

git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-documentation@1210 b067294f-1dea-0310-9683-c47a78595994
This commit is contained in:
mallum
2005-09-26 15:56:34 +00:00
parent 1f9a7c64c8
commit a24def6555

26
make-docs.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
rm -fr /tmp/mb-docs
# manual
echo "Generating HTML Manual"
mkdir -p /tmp/mb-docs/manual
xsltproc -o /tmp/mb-docs/manual/ --param use.id.as.filename 1 common/mb-dbk.xsl manual/matchbox-manual.xml
cp -r common/images common/mb.css /tmp/mb-docs/manual/
echo "Generating manual tarball"
tar cvzf /tmp/mb-docs/matchbox-manual.tar.gz /tmp/mb-docs/manual
echo "Generating manual PDF"
echo "Not working as yet.."
#xsltproc --output /tmp/mb-docs/manual/matchbox-manual.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/fo.xsl manual/matchbox-manual.xml
echo "Generating Testing doc"
mkdir -p /tmp/mb-docs/developers/testing
xsltproc -o /tmp/mb-docs/developers/testing/ --param use.id.as.filename 1 common/mb-dbk.xsl testing/testing.docbook
cp -r common/images common/mb.css /tmp/mb-docs/developers/testing/
echo "Generating Themeing doc"
mkdir -p /tmp/mb-docs/themes
xsltproc -o /tmp/mb-docs/themes/ --param use.id.as.filename 1 common/mb-dbk.xsl theme-howto/theme.howto.docbook
cp -r theme-howto/*.png common/images common/mb.css /tmp/mb-docs/themes