summaryrefslogtreecommitdiff
path: root/format/fo/mif
blob: 296a86bf7500ec83c79da16858a8b5170aa2458b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
case "$USE_BACKEND" in
DEFAULT|DBLATEX)
	echo "Sorry, no way to convert to mif, use --with-fop option for that"
	echo "You need to install fop package for using that option."
	exit 3
	;;
FOP)
	EXT=$(basename "$0")
	case "$1" in
	stylesheet)
	  ;;
	post-process)
	  if [ "$VERBOSE" -ge 1 ]
	  then
	    echo >&2 "Post-process XSL-FO to MIF"
	  fi
	  #we need to change dir to handle external data objects correctly
	  cd "${OUTPUT_DIR}"
	  "$FOP_PATH" ${POSTARGS} -fo "${XSLT_PROCESSED}" -"${EXT}" "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).${EXT}"
	  cd -
	  ;;
	esac
	;;
esac