$NetBSD: patch-texmf-dist_web2c_mktexdir,v 1.1 2020/05/10 03:56:41 markd Exp $ use full path for commands --- texmf-dist/web2c/mktexdir.orig 2009-06-03 06:07:17.000000000 -0700 +++ texmf-dist/web2c/mktexdir @@ -12,8 +12,8 @@ usage="Usage: $0 DIRS... mt_max_args=$# # 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