blob: 5bb559f934e1fc83527e693c0b7ecc6d598d8363 (
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
41
42
43
44
45
46
47
|
#! /bin/sh -vx
# $Id$
# Copyright 2022 Japanese TeX Development Community <issue@texjp.org>
# Copyright 2017 Karl Berry <tex-live@tug.org>
# Copyright 2011-2013 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.
BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_updvitype=$BinDir/updvitype$ExeExt
test -d uptests || mkdir -p uptests
rc=0
if tfmpath=`$KPSEWHICH cmbx10.tfm`; then
TEXMFCNF=$srcdir/../kpathsea \
TFMFONTS=`dirname "$tfmpath"` \
$_updvitype -show-opcodes $srcdir/tests/story >uptests/xstory.dvityp || rc=1
fi
TEXMFCNF=$srcdir/../kpathsea \
TFMFONTS=$srcdir/tests \
$_updvitype --p=\*.\*.2 $srcdir/tests/pagenum.dvi >uptests/xpagenum.typ || rc=2
TEXMFCNF=$srcdir/../kpathsea
TFMFONTS=$srcdir/ptexdir/tests:$srcdir/uptexdir/tests:$srcdir/tests
export TEXMFCNF TFMFONTS
for enc in utf8 jis; do
for doc in ptex3 ptex4; do
$_updvitype -kanji=$enc $srcdir/ptexdir/tests/$doc.dvi >uptests/x$doc-$enc.typ || rc=3
sed 1d uptests/x$doc-$enc.typ >uptests/x${doc}a-$enc.typ
diff $srcdir/ptexdir/tests/${doc}a-$enc.typ uptests/x${doc}a-$enc.typ || rc=4
done
done
for doc in uptex3 uptex4; do
$_updvitype $srcdir/uptexdir/tests/$doc.dvi >uptests/x$doc.typ || rc=5
sed 1d uptests/x$doc.typ >uptests/x${doc}a.typ
diff $srcdir/uptexdir/tests/${doc}a.typ uptests/x${doc}a.typ || rc=6
done
exit $rc
|