diff options
author | N.N. <krzyszcz@users.sourceforge.net> | 2005-05-10 20:30:47 +0000 |
---|---|---|
committer | N.N. <krzyszcz@users.sourceforge.net> | 2005-05-10 20:30:47 +0000 |
commit | 2f98cf610081a6e3c4a4aadf4411dcc89b756db2 (patch) | |
tree | 282ed3657a8050ad790570dec4263fff67272f6b /test/pddp/topdf | |
parent | cdd23c6b9523654eb3bf03542021404888fdbcba (diff) |
toxy alpha17 and pddp alpha1 (see notes.txt for toxy, pddp and shared)
svn path=/trunk/externals/miXed/; revision=2941
Diffstat (limited to 'test/pddp/topdf')
-rwxr-xr-x | test/pddp/topdf | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/pddp/topdf b/test/pddp/topdf new file mode 100755 index 0000000..adf4b43 --- /dev/null +++ b/test/pddp/topdf @@ -0,0 +1,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" |