#! /bin/sh # # Copyright (C) 2012 Peter Breitenlohner # You may freely use, modify and/or distribute this file. usage () { echo "usage: $0 TEX-ENGINE" >&2 echo " test that TeX does not create DVI files >2GB" >&2 echo "" >&2 echo " where TEX-ENGINE is the path to TeX (or similar)" >&2 exit 1 } test -n "$1" && test -x "$1" || usage dir=`dirname "$0"` TEXMFCNF=`cd "$dir" && pwd` export TEXMFCNF TEX=`dirname "$1"`/`basename "$1"` echo testing "'$TEX'" echo "$TEX" -ini largedvi echo if grep 'dvi length exceeds "7FFFFFFF' largedvi.log; then ls -lh largedvi.dvi echo PASS: largedvi.test # rm -f largedvi.dvi largedvi.log else echo FAIL: largedvi.test fi