summaryrefslogtreecommitdiff
path: root/print/tex-texlive-scripts/patches/patch-bin_mktexmf
blob: b2833dc3658818c7340f4b7a1829432a2069fc93 (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
$NetBSD: patch-bin_mktexmf,v 1.1 2020/05/10 03:56:44 markd Exp $

use full path for commands

--- bin/mktexmf.orig	2014-07-18 23:38:50.000000000 +0000
+++ bin/mktexmf
@@ -24,8 +24,8 @@ TeX Live home page: <http://tug.org/texl
 "
 
 # Common code for all scripts.
-: ${MT_TEXMFMAIN=`kpsewhich --expand-path='$TEXMFMAIN'`}
-: ${MT_MKTEX_OPT=`kpsewhich --format='web2c files' mktex.opt`}
+: ${MT_TEXMFMAIN=`@KPSEWHICH@ --expand-path='$TEXMFMAIN'`}
+: ${MT_MKTEX_OPT=`@KPSEWHICH@ --format='web2c files' mktex.opt`}
 test -n "$MT_MKTEX_OPT" || MT_MKTEX_OPT="$MT_TEXMFMAIN/web2c/mktex.opt"
 if test ! -f "$MT_MKTEX_OPT"; then
   echo "$progname: Cannot find mktex.opt; check your installation." >&2
@@ -40,7 +40,7 @@ name="`echo $1 | sed 's%.*/%%; s%\.mf$%%
 rootname=`echo "$name" | sed 's/[0-9]*$//'`
 pointsize=`echo "$name" | sed "s/^$rootname//"`
 
-sauterroot=`kpsewhich b-$rootname.mf 2>/dev/null`
+sauterroot=`@KPSEWHICH@ b-$rootname.mf 2>/dev/null`
 if test -n "$sauterroot"; then
   rootfile=$sauterroot
   rootname=b-$rootname
@@ -52,12 +52,12 @@ else
     *)
       case $rootname in
         cs*|lcsss*|icscsc*|icstt*|ilcsss*)
-          rootfile=`kpsewhich cscode.mf`;;
+          rootfile=`@KPSEWHICH@ cscode.mf`;;
         wn[bcdfirstuv]*|rx[bcdfiorstuvx][bcfhilmostx]|l[abcdhl][bcdfiorstuvx]*)
           lhprefix=`echo "$name" | sed 's/^\(..\).*/\1/'`
-          rootfile=`kpsewhich ${lhprefix}codes.mf 2>/dev/null`;;
+          rootfile=`@KPSEWHICH@ ${lhprefix}codes.mf 2>/dev/null`;;
         *)
-          rootfile=`kpsewhich $rootname.mf 2>/dev/null`;;
+          rootfile=`@KPSEWHICH@ $rootname.mf 2>/dev/null`;;
       esac;;
   esac
 fi