pkgsrc/print/kpathsea/patches/patch-ac

24 lines
1,002 B
Text

$NetBSD: patch-ac,v 1.1 2009/09/20 18:50:03 minskim Exp $
--- mktexupd.orig 2009-06-03 06:07:18.000000000 -0700
+++ mktexupd
@@ -10,8 +10,8 @@ mt_min_args=2
mt_max_args=2
# 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 "$0: Cannot find mktex.opt; check your installation." >&2
@@ -25,7 +25,7 @@ file=$2
test -d "$dir" || { echo "$0: $dir not a directory." >&2; exit 1; }
test -f "$dir/$file" || { echo "$0: $dir/$file not a file." >&2; exit 1; }
-OIFS=$IFS; IFS=$SEP; set x `kpsewhich -show-path=ls-R`; shift; IFS=$OIFS
+OIFS=$IFS; IFS=$SEP; set x `@KPSEWHICH@ -show-path=ls-R`; shift; IFS=$OIFS
TEXMFLS_R=
for d in "$@"; do
case $dir in