forked from billm/pfsense-tools-centipede-slbd
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docbook-build.sh
executable file
·28 lines (25 loc) · 1013 Bytes
/
docbook-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/local/bin/bash
ROOTPATH=/usr/pfsense
CVSPATH=$ROOTPATH/cvsroot
CVSROOT=:ext:[email protected]:/cvsroot
WWWPATH=$ROOTPATH/wwwroot
CSSFILE=pfsensedoc.css
# update from CVS
cd $CVSPATH && cvs -d $CVSROOT co doc
# build html files
/usr/local/bin/xsltproc \
--stringparam section.autolabel 1 \
--stringparam section.label.includes.component.label 1 \
--stringparam toc.max.depth 2 \
--stringparam html.stylesheet $CSSFILE \
--stringparam chunker.output.indent yes \
--stringparam base.dir $WWWPATH/docbook/ \
/usr/local/docbook-xsl-1.61.3/html/chunk.xsl \
$CVSPATH/docbook/book.xml
# copy files into place for www
cp $CVSPATH/docbook/$CSSFILE $WWWPATH/docbook
cp $CVSPATH/docbook/*.png $WWWPATH/docbook
cp $CVSPATH/docbook/*.html $WWWPATH/docbook
cp -R $CVSPATH/docbook/screens/* $WWWPATH/docbook/screens/
cp -R $CVSPATH/docbook/icons/* $WWWPATH/docbook/icons/
cp -R $CVSPATH/docbook/networkdiagrams/* $WWWPATH/docbook/networkdiagrams/