summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/uptexdir/sample.test
diff options
context:
space:
mode:
authorTakuji Tanaka <ttk@t-lab.opal.ne.jp>2023-08-20 14:26:56 +0000
committerTakuji Tanaka <ttk@t-lab.opal.ne.jp>2023-08-20 14:26:56 +0000
commitbb71bbacb80842b9b3b2e65484493437222f7f34 (patch)
treeb265db45eb108b13b1ce7c6fa3df0fd8a7d90e19 /Build/source/texk/web2c/uptexdir/sample.test
parentf5a9767f0c69c3e2d9f6c557b14d65bf2cfea1b1 (diff)
{,e}{,u}ptex: Make easier to test on Windows
git-svn-id: svn://tug.org/texlive/trunk@67990 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/uptexdir/sample.test')
-rwxr-xr-xBuild/source/texk/web2c/uptexdir/sample.test8
1 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/uptexdir/sample.test b/Build/source/texk/web2c/uptexdir/sample.test
index 24db4cc946d..7c861125dd0 100755
--- a/Build/source/texk/web2c/uptexdir/sample.test
+++ b/Build/source/texk/web2c/uptexdir/sample.test
@@ -5,6 +5,10 @@
# Copyright 2010-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
tfmpath=`$KPSEWHICH cmbx10.tfm` || exit 77
@@ -16,8 +20,8 @@ tfmgrandparent=`dirname "$tfmparent"`
testdir=$srcdir/ptexdir/tests
TEXMFCNF=$srcdir/../kpathsea \
- TFMFONTS=$testdir:`dirname "$tfmgrandparent"`// \
- ./updvitype -kanji=utf8 -show-opcodes $testdir/sample >uptests/xsample.typ || exit 1
+ TFMFONTS="$testdir;"`dirname "$tfmgrandparent"`// \
+ $_updvitype -kanji=utf8 -show-opcodes $testdir/sample >uptests/xsample.typ || exit 1
sed 1d uptests/xsample.typ >uptests/xsamplea.typ
diff $testdir/samplea.typ uptests/xsamplea.typ || exit 1