blob: 8aa8eaba24942c64f3ff27f018326af6a1c87426 (
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
25
26
27
28
29
30
31
|
#! /bin/sh
# $Id$
# Public domain. Originally written by Peter Breitenlohner, 2009.
get_val () {
res=`kpsewhich "$@"` || { echo "\"kpsewhich $@\" failed"; exit 77; }
}
get_val mktex.cnf
TEXMFCNF=`dirname "$res"`
get_val psfonts.map
par=`dirname "$res"`
TEXFONTMAPS=`dirname "$par"`//
get_val 8r.enc
par=`dirname "$res"`
ENCFONTS=`dirname "$par"`//
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
./dvipng -T tight -strict $srcdir/dvipng-test.dvi || exit 1
echo View the result e.g. with display dvipng-test\*.png
./dvipng --gif -T tight -strict $srcdir/dvipng-test.dvi || exit 1
echo View the result e.g. with display dvipng-test\*.gif
|