blob: 500cf758df02e09e68d59c0b0017e9373c42ba2e (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#! /bin/sh -vx
# $Id$
# Copyright 2018 Karl Berry <tex-live@tug.org>
# Copyright 2010-2013 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.
BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_kpsewhich=$BinDir/kpsewhich$ExeExt
TEXMFCNF=$srcdir
export TEXMFCNF
$_kpsewhich --var-value=TEXMFCNF || exit 1 # environment variable
$_kpsewhich --var-value=TEXMFMAIN || exit 2
$_kpsewhich --expand-var=\$TEXMFMAIN || exit 3
# It turns out --all and no --all go through rather different code
# in pathsearch.c, so try them both.
if [ "$ExeExt" = ".exe" ]; then
$_kpsewhich --cnf-line=TEXINPUTS=$srcdir/../tests/texmf \
--casefold-search --all Plain.TeX || exit 4
$_kpsewhich --cnf-line=TEXINPUTS=$srcdir/../tests/texmf \
--casefold-search Plain.TeX || exit 5
else
TEXINPUTS=$srcdir/../tests/texmf \
$_kpsewhich --casefold-search --all Plain.TeX || exit 4
TEXINPUTS=$srcdir/../tests/texmf \
$_kpsewhich --casefold-search Plain.TeX || exit 5
fi
#
# These runs will succeed on case-insensitive (file)systems, so don't
# run them.
#TEXINPUTS=$srcdir/../tests/texmf \
# ./kpsewhich --no-casefold-search --all Plain.TeX && exit 6
#TEXINPUTS=$srcdir/../tests/texmf \
# ./kpsewhich --no-casefold-search Plain.TeX && exit 7
if [ "$ExeExt" = ".exe" ]; then
$_kpsewhich --cnf-line=TEXINPUTS=$srcdir/../tests/texmf \
--all plain || exit 8
$_kpsewhich --cnf-line=AFMFONTS=$srcdir/../tests/texmf \
afmtest.afm || exit 9
$_kpsewhich --cnf-line=BSTINPUTS=$srcdir/../tests/texmf \
plain.bst || exit 10
else
TEXINPUTS=$srcdir/../tests/texmf \
$_kpsewhich --all plain || exit 8
AFMFONTS=$srcdir/../tests/texmf \
$_kpsewhich afmtest.afm || exit 9
BSTINPUTS=$srcdir/../tests/texmf \
$_kpsewhich plain.bst || exit 10
fi
|