MOON
Server: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 PHP/5.4.10
System: Linux vps.presagepowered.net 2.6.18-398.el5 #1 SMP Tue Sep 16 20:51:48 EDT 2014 i686
User: mckernan (512)
PHP: 5.4.10
Disabled: NONE
Upload Files
File: //usr/share/xmlto/format/fo/dvi
case "$1" in
stylesheet)
  ;;
post-process)
  if [ "$VERBOSE" -ge 1 ]
  then
    echo >&2 "Post-process XSL-FO to DVI"
  fi
  # Work around stupid tetex bug with '_' in filenames
  # Also work around stupid tetex limitation with long lines (bug #101055)
  sed -e "s,/>,\n/>,g" "$XSLT_PROCESSED" >tmp.fo
  OUT=output
  TEXINPUTS="$(dirname "$INPUT_FILE")::$SEARCHPATH"
  export TEXINPUTS
  xmltex ${POSTARGS} tmp.fo >$OUT </dev/null || { cat $OUT; exit 1; }
  [ "$VERBOSE" -ge 2 ] && echo >&2 "First pass complete"
  # If there were undefined references we need to re-run xmltex.
  if egrep '^LaTeX Warning: There were undefined references.$' $OUT \
						>/dev/null 2>&1 \
  || egrep '^LaTeX Warning: Label.s. may have changed\.' $OUT \
						>/dev/null 2>&1
  then
    xmltex ${POSTARGS} tmp.fo >$OUT </dev/null
    [ "$VERBOSE" -ge 2 ] && echo >&2 "Second pass complete"
    xmltex ${POSTARGS} tmp.fo >$OUT </dev/null
    if [ "$VERBOSE" -ge 2 ]
    then
      echo >&2 "Third pass complete"
      [ "$VERBOSE" -ge 3 ] && cat $OUT
    fi
  fi
  cp -- *.dvi "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").dvi"
  ;;
esac