pkgsrc/print/texlive-tetex/patches/patch-ak
minskim ff467281f3 Use absolute paths in invoking the following commands: fmtutil,
fmtutil-sys, kpsetool, kpsewhere, texconfig, texconfig-dialog,
texconfig-sys, texlinks, updmap, and updmap-sys.
2009-09-20 03:33:42 +00:00

40 lines
1.4 KiB
Text

$NetBSD: patch-ak,v 1.1 2009/09/20 03:33:43 minskim Exp $
--- texlinks.orig 2008-06-18 11:24:19.000000000 -0700
+++ texlinks
@@ -179,7 +179,7 @@ install_link()
###############################################################################
search_symlinkdir()
{
- kpsewhich=`check_for_binary kpsewhich`
+ kpsewhich=@KPSEWHICH@
test -z "$kpsewhich" && return 1
symlinkdir=`echo $kpsewhich | sed 's@/*kpsewhich$@@'`
kpseaccess -w "$symlinkdir" || return 1
@@ -241,7 +241,7 @@ main()
silent=false
thisdir=`pwd`
: ${KPSE_DOT=$thisdir}; export KPSE_DOT
- selfautoloc=`kpsewhich --expand-var='$SELFAUTOLOC'`
+ selfautoloc=`@KPSEWHICH@ --expand-var='$SELFAUTOLOC'`
while
case $1 in
--h*|-h)
@@ -261,7 +261,7 @@ main()
dirs="$*"
# if no cnf_file from command-line, look it up with kpsewhich:
- test -z "$cnf_file" && cnf_file=`kpsewhich --format='web2c files' $cnf`
+ test -z "$cnf_file" && cnf_file=`@KPSEWHICH@ --format='web2c files' $cnf`
test -f "$cnf_file" || abort "config file \`$cnf' not found"
@@ -276,7 +276,7 @@ main()
if test $multiplatform = true; then
case $selfautoloc in
*/bin) dirs=$selfautoloc;;
- *) parent=`kpsewhich --expand-var='$SELFAUTODIR'`
+ *) parent=`@KPSEWHICH@ --expand-var='$SELFAUTODIR'`
dirs=`find $parent -type f -name kpsewhich -print \
| sed 's@/kpsewhich$@@'`;;
esac