TIVI-153: add as dependency for iputils
[profile/ivi/xmlto.git] / format / docbook / dvi
1 case "$USE_BACKEND" in
2 DEFAULT|FOP)
3   case "$1" in
4   stylesheet)
5     if [ "$VERBOSE" -ge 1 ]
6     then
7       echo >&2 "Convert to XSL-FO"
8     fi
9     echo "http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"
10     ;;
11   post-process)
12     # Get the FO format script to do the rest
13     sh "$(dirname "$0")/../fo/$(basename "$0")" "$1"
14     ;;
15   esac
16   ;;
17 DBLATEX)
18   EXT=$(basename "$0")
19   case "$1" in
20   stylesheet)
21     ;;
22   post-process)
23     if [ "$VERBOSE" -ge 1 ]
24     then
25       echo >&2 "Convert to ${EXT}"
26       POSTARGS="${POSTARGS} --verbose"
27     fi
28     "$DBLATEX_PATH" ${POSTARGS} -P doc.collab.show=0 -P latex.output.revhistory=0 "${XSLT_PROCESSED}" --"${EXT}" --output="$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).${EXT}"
29     ;;
30   esac
31   ;;
32 esac