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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
|
$NetBSD: patch-ai,v 1.3 2011/11/06 08:43:29 minskim Exp $
--- texconfig.orig 2011-01-07 11:45:38.000000000 +0000
+++ texconfig
@@ -91,7 +91,7 @@ echoShowKpseVariable()
for eskv
do
var=$eskv
- val=`kpsewhich -var-value="$eskv"`
+ val=`@KPSEWHICH@ -var-value="$eskv"`
echo "$var=$val"
done
}
@@ -123,7 +123,7 @@ echoLocateCfgfile()
for elc
do
case $elc in
- texmf.cnf) elcLoc=`kpsewhich $elc`;;
+ texmf.cnf) elcLoc=`@KPSEWHICH@ $elc`;;
*) elcLoc=`tcfmgr --cmd find --file "$elc"`;;
esac
case $elcLoc in
@@ -190,7 +190,7 @@ setupTmpDir()
setupTexmfmain()
{
case $MT_TEXMFMAIN in
- "") MT_TEXMFMAIN=`kpsewhich -var-value=TEXMFMAIN`;;
+ "") MT_TEXMFMAIN=`@KPSEWHICH@ -var-value=TEXMFMAIN`;;
*) return;;
esac
}
@@ -201,7 +201,7 @@ setupTexmfmain()
setupTexmfdist()
{
case $MT_TEXMFDIST in
- "") MT_TEXMFDIST=`kpsewhich -var-value=TEXMFDIST`;;
+ "") MT_TEXMFDIST=`@KPSEWHICH@ -var-value=TEXMFDIST`;;
*) return;;
esac
}
@@ -212,7 +212,7 @@ setupTexmfdist()
setupTexmfvar()
{
case $MT_TEXMVAR in
- "") MT_TEXMVAR=`kpsewhich -var-value=TEXMFVAR`;;
+ "") MT_TEXMVAR=`@KPSEWHICH@ -var-value=TEXMFVAR`;;
*) return;;
esac
}
@@ -223,7 +223,7 @@ setupTexmfvar()
setupSystexmf()
{
case $MT_SYSTEXMF in
- "") MT_SYSTEXMF=`kpsewhich -var-value=SYSTEXMF`;;
+ "") MT_SYSTEXMF=`@KPSEWHICH@ -var-value=SYSTEXMF`;;
*) return;;
esac
}
@@ -478,7 +478,7 @@ listDvipsPapers()
#
getFormatsForHyphen()
{
- fmtutil --catcfg | awk '$3 != "-" {print $1}' | sort
+ @FMTUTIL@ --catcfg | awk '$3 != "-" {print $1}' | sort
}
###############################################################################
@@ -607,7 +607,7 @@ TeX Live home page: <http://tug.org/texl
echo
echo '============================= font map files ============================='
for m in psfonts.map pdftex.map ps2pk.map dvipdfm.map; do
- echo "$m: `kpsewhich $m`"
+ echo "$m: `@KPSEWHICH@ $m`"
done
echo
echo '=========================== kpathsea variables ==========================='
@@ -703,7 +703,7 @@ Valid PAPER settings:
*)
otherPrinter=true
otherPrinterName=$2
- otherPrinterFile=`kpsewhich -format='dvips config' "config.$otherPrinterName"`
+ otherPrinterFile=`@KPSEWHICH@ -format='dvips config' "config.$otherPrinterName"`
case $otherPrinterFile in
"")
echo "$progname: configuration file \`config.$otherPrinterName' for printer \`$otherPrinterName' not found" >&2
@@ -736,7 +736,7 @@ Valid PAPER settings:
;;
*)
printerName=$2
- pFile=`kpsewhich -format='dvips config' "config.$printerName"`
+ pFile=`@KPSEWHICH@ -format='dvips config' "config.$printerName"`
case $pFile in
"")
setupTmpDir
@@ -773,7 +773,7 @@ Valid PAPER settings:
;;
*)
printerName=$2
- pFile=`kpsewhich -format='dvips config' "config.$printerName"`
+ pFile=`@KPSEWHICH@ -format='dvips config' "config.$printerName"`
case $pFile in
"")
echo "$progname: configuration file for printer \`$printerName' (config.$printerName) not found" >&2
@@ -931,7 +931,7 @@ For more information about these \`featu
;;
*)
tcBatchFontVardir=$3
- tfc=`kpsewhich texmf.cnf`
+ tfc=`@KPSEWHICH@ texmf.cnf`
if test -n "$tfc"; then
if test -w "$tfc"; then
configReplace "$tfc" '^VARTEXFONTS' "VARTEXFONTS = $tcBatchFontVardir"
@@ -947,7 +947,7 @@ For more information about these \`featu
esac
;;
rw)
- MT_VARTEXFONTS=`kpsewhich -var-value VARTEXFONTS`
+ MT_VARTEXFONTS=`@KPSEWHICH@ -var-value VARTEXFONTS`
if test -z "$MT_VARTEXFONTS"; then
echo "$progname: failed to set \`font rw'; reason: could not determine VARTEXFONTS variable." >&2; rc=1
return
@@ -973,7 +973,7 @@ For more information about these \`featu
fmgrConfigReplace mktex.cnf '^: ..MT_FEATURES=' ": \${MT_FEATURES=appendonlydir:varfonts}"
;;
ro)
- MT_VARTEXFONTS=`kpsewhich -var-value VARTEXFONTS`
+ MT_VARTEXFONTS=`@KPSEWHICH@ -var-value VARTEXFONTS`
if test -z "$MT_VARTEXFONTS"; then
echo "$progname: failed to set \`font ro'; reason: could not determine VARTEXFONTS variable." >&2; rc=1
return
@@ -1024,10 +1024,10 @@ EOM
setupTmpDir
echo "$progname: analyzing old configuration..." >&2
- fmtutil --catcfg > $tmpdir/pre
- fmtutil --edit
+ @FMTUTIL@ --catcfg > $tmpdir/pre
+ @FMTUTIL@ --edit
echo "$progname: analyzing new configuration..." >&2
- fmtutil --catcfg > $tmpdir/post
+ @FMTUTIL@ --catcfg > $tmpdir/post
if cmp $tmpdir/pre $tmpdir/post >/dev/null 2>&1; then
echo "$progname: no new/updated formats available ..." >&2
@@ -1035,9 +1035,9 @@ EOM
echo "$progname: updating formats ..." >&2
comm -13 $tmpdir/pre $tmpdir/post > $tmpdir/addOrChange
for i in `awk '{print $1}' $tmpdir/addOrChange`; do
- fmtutil --byfmt "$i" || rc=1
+ @FMTUTIL@ --byfmt "$i" || rc=1
done
- texlinks --multiplatform || rc=1
+ @TEXLINKS@ --multiplatform || rc=1
fi
;;
@@ -1077,7 +1077,7 @@ $formatsForHyphenFmt"
*)
if checkElemInList "$tcBatchHyphenFormat" $formatsForHyphen; then
- tcBatchHyphenFile=`fmtutil --showhyphen "$tcBatchHyphenFormat"`
+ tcBatchHyphenFile=`@FMTUTIL@ --showhyphen "$tcBatchHyphenFormat"`
case $tcBatchHyphenFile in
"")
echo "$progname: could not find hyphen setup file for format \`$tcBatchHyphenFormat'" >&2
@@ -1134,7 +1134,7 @@ $formatsForHyphenFmt"
fi
;;
esac
- fmtutil --byhyphen "$tcBatchHFOut"
+ @FMTUTIL@ --byhyphen "$tcBatchHFOut"
fi
else
echo "$progname: invalid format \`$tcBatchHyphenFormat' specified as argument for \`$progname hyphen'" >&2
@@ -1152,9 +1152,9 @@ $formatsForHyphenFmt"
init)
case $2 in
"")
- if fmtutil --all \
- && texlinks --multiplatform \
- && updmap; then
+ if @FMTUTIL@ --all \
+ && @TEXLINKS@ --multiplatform \
+ && @UPDMAP@; then
:
else
rc=1
@@ -1163,7 +1163,7 @@ $formatsForHyphenFmt"
*)
shift 1
for i in "$@"; do
- fmtutil --byfmt "$i" || rc=1
+ @FMTUTIL@ --byfmt "$i" || rc=1
done
;;
esac
@@ -1266,7 +1266,7 @@ Valid PAPER settings:
set x `getRes "$tcBatchPdftexMode"`; shift
fmgrConfigReplace pdftexconfig.tex 'pdfpkresolution' "\\pdfpkresolution=$1"
if $fmgrConfigReplaceChanged; then
- fmtutil --refresh
+ @FMTUTIL@ --refresh
fi
else
echo "$progname: unknown MODE \`$tcBatchPdftexMode' given as argument for \`$progname pdftex mode'" >&2
@@ -1285,7 +1285,7 @@ Valid PAPER settings:
wChanged=$fmgrConfigReplaceChanged
fmgrConfigReplace pdftexconfig.tex pdfpageheight '\pdfpageheight='"$h"
if $wChanged || $fmgrConfigReplaceChanged; then
- fmtutil --refresh
+ @FMTUTIL@ --refresh
fi
;;
a4)
@@ -1294,7 +1294,7 @@ Valid PAPER settings:
wChanged=$fmgrConfigReplaceChanged
fmgrConfigReplace pdftexconfig.tex pdfpageheight '\pdfpageheight='"$h"
if $wChanged || $fmgrConfigReplaceChanged; then
- fmtutil --refresh
+ @FMTUTIL@ --refresh
fi
;;
"") echo "$help" >&2; rc=1;;
|