blob: f59273aa20e06aac09ae33ddb025809915ff62e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
usage () {
cat << EOF
usage: toonepage <pddpsource>.xml
EOF
}
[ "$#" == 0 ] && { usage; exit 1; }
SOURCE_NAME="$(basename $1)"
SOURCE_STUB="$(basename $SOURCE_NAME .xml)"
[ $SOURCE_STUB == $SOURCE_NAME ] && { usage; exit 1; }
xmllint >/dev/null --xinclude --postvalid $1
xsltproc --nonet --xinclude \
--stringparam html.stylesheet pddp.css \
-o "$SOURCE_STUB.html" \
/usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl \
$1
|