summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pmpostdir/upmpsamp.test
blob: ff334aca332293fe701005f553946e8e73b964e1 (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
32
33
34
35
36
37
38
39
40
#! /bin/sh -vx
# $Id$
# Copyright 2017 Karl Berry <tex-live@tug.org>
# Copyright 2014 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

tests=pmpostdir/tests

test -d $tests || mkdir -p $tests

TEXMFCNF=$srcdir/../kpathsea

tfmpath=`$KPSEWHICH cmr10.tfm` || exit 77
TFMFONTS="$srcdir/$tests;`echo $tfmpath | sed 's,/fonts/tfm/.*$,/fonts/tfm//,'`"

mppath=`$KPSEWHICH plain.mp` || exit 77
MPINPUTS=".;`dirname $mppath`"

mappath=`$KPSEWHICH psfonts.map` || exit 77
TEXFONTMAPS=`echo $mappath | sed 's,/fonts/map/.*$,/fonts/map//,'`

t1path=`$KPSEWHICH cmmi10.pfb` || exit 77
T1FONTS="$srcdir/$tests;`echo $t1path | sed 's,/fonts/type1/.*$,/fonts/type1//,'`"

vfpath=`$KPSEWHICH upjisr-h.vf` || exit 77
VFFONTS="$srcdir/$tests;`dirname $vfpath`"

export TEXMFCNF TFMFONTS MPINPUTS TEXFONTMAPS T1FONTS VFFONTS

# check that we have euptex at all. 
euptex -version >/dev/null 2>&1 || exit 77

# ensure that euptex.fmt exists and can be read. 
euptex \\end >/dev/null 2>&1 || exit 77 

echo 'input plain;' >upmpsamp.mp
cat "$srcdir/$tests/psample.mp" >>upmpsamp.mp

./upmpost -ini -tex=euptex upmpsamp || exit 1