summaryrefslogtreecommitdiff
path: root/format/docbook/dvi
diff options
context:
space:
mode:
Diffstat (limited to 'format/docbook/dvi')
-rwxr-xr-xformat/docbook/dvi32
1 files changed, 32 insertions, 0 deletions
diff --git a/format/docbook/dvi b/format/docbook/dvi
new file mode 100755
index 0000000..a48be6b
--- /dev/null
+++ b/format/docbook/dvi
@@ -0,0 +1,32 @@
+case "$USE_BACKEND" in
+DEFAULT|FOP)
+ case "$1" in
+ stylesheet)
+ if [ "$VERBOSE" -ge 1 ]
+ then
+ echo >&2 "Convert to XSL-FO"
+ fi
+ echo "http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"
+ ;;
+ post-process)
+ # Get the FO format script to do the rest
+ sh "$(dirname "$0")/../fo/$(basename "$0")" "$1"
+ ;;
+ esac
+ ;;
+DBLATEX)
+ EXT=$(basename "$0")
+ case "$1" in
+ stylesheet)
+ ;;
+ post-process)
+ if [ "$VERBOSE" -ge 1 ]
+ then
+ echo >&2 "Convert to ${EXT}"
+ POSTARGS="${POSTARGS} --verbose"
+ fi
+ "$DBLATEX_PATH" ${POSTARGS} -P doc.collab.show=0 -P latex.output.revhistory=0 "${XSLT_PROCESSED}" --"${EXT}" --output="$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).${EXT}"
+ ;;
+ esac
+ ;;
+esac