/usr/lib/pd/extra/pddp/examples/topdf is in pd-pddp 0.2.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/bash
usage () {
cat << EOF
usage: topdf <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 \
-o "$SOURCE_STUB.fo" \
/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl \
$1
# FIXME need to run this twice, it should be check-wrapped too
pdfxmltex "$SOURCE_STUB.fo"
|