TIVI-153: add as dependency for iputils
[profile/ivi/xmlto.git] / format / docbook / ps
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     EXT=$(basename "$0")
13     if [ "$VERBOSE" -ge 1 ]
14     then
15       echo >&2 "Convert to ${EXT}"
16     fi
17     # Get the FO format script to do the rest
18     sh "$(dirname "$0")/../fo/${EXT}" "$1"
19     ;;
20   esac
21   ;;
22 DBLATEX)
23   EXT=$(basename "$0")
24   case "$1" in
25   stylesheet)
26     ;;
27   post-process)
28     if [ "$VERBOSE" -ge 1 ]
29     then
30       echo >&2 "Convert to ${EXT}"
31       POSTARGS="${POSTARGS} --verbose"
32     fi
33     "$DBLATEX_PATH" ${POSTARGS} -P doc.collab.show=0 -P latex.output.revhistory=0 "${XSLT_PROCESSED}" --"${EXT}" --output="$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).${EXT}"
34     ;;
35   esac
36   ;;
37 esac