summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipng/dvipng.test
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-04-20 07:26:48 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-04-20 07:26:48 +0000
commit4692b997f9bb6410fcbdd5d06438c2c2cfda0a2e (patch)
tree27c2483c1469aa65a28eead0c65b70ad43e88747 /Build/source/texk/dvipng/dvipng.test
parentc069df30824ac859800243880e32f7dbdd6a9735 (diff)
re-enable the test
git-svn-id: svn://tug.org/texlive/trunk@17941 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipng/dvipng.test')
-rwxr-xr-xBuild/source/texk/dvipng/dvipng.test23
1 files changed, 14 insertions, 9 deletions
diff --git a/Build/source/texk/dvipng/dvipng.test b/Build/source/texk/dvipng/dvipng.test
index 1c76180c9ea..75c1c4afebf 100755
--- a/Build/source/texk/dvipng/dvipng.test
+++ b/Build/source/texk/dvipng/dvipng.test
@@ -2,19 +2,24 @@
# $Id$
# Public domain. Originally written by Peter Breitenlohner, 2009.
-TEXMFCNF=$(dirname $(kpsewhich texmf.cnf))
-TEXFONTMAPS=$(dirname $(dirname $(kpsewhich psfonts.map)))//
-ENCFONTS=$(dirname $(dirname $(kpsewhich 8r.enc)))//
-TEXMFMAIN=$(kpsewhich --expand-var='$TEXMFMAIN')
-TEXMFDIST=$(kpsewhich --expand-var='$TEXMFDIST')
+get_val () {
+ res=$(kpsewhich "$@") || { echo "\"kpsewhich $@\" failed"; exit 77; }
+}
+
+get_val mktex.cnf
+TEXMFCNF=$(dirname $res)
+get_val psfonts.map
+TEXFONTMAPS=$(dirname $(dirname $res))//
+get_val 8r.enc
+ENCFONTS=$(dirname $(dirname $res))//
+get_val --expand-var='$TEXMFMAIN'
+TEXMFMAIN=$res
+get_val --expand-var='$TEXMFDIST'
+TEXMFDIST=$res
TEXMFLOCAL=$(kpsewhich --expand-var='$TEXMFLOCAL')
export TEXMFCNF TEXFONTMAPS ENCFONTS TEXMFMAIN TEXMFDIST TEXMFLOCAL
-# running latex in the build tree has many too many prerequisites.
-# we just check in the dvi.
-#latex $srcdir/$DVIPNG_TREE/test_dvipng.tex || exit 77
-
./dvipng -T tight -strict $srcdir/dvipng-test.dvi || exit 1
echo View the result e.g. with display dvipng-test\*.png