From bd345c5c73d812c9d505b379c61a5059cc920678 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 17 Jul 2014 16:41:08 +0000 Subject: sync with dev change git-svn-id: svn://tug.org/texlive/trunk@34642 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/texconfig/tcfmgr | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/texconfig') diff --git a/Master/texmf-dist/texconfig/tcfmgr b/Master/texmf-dist/texconfig/tcfmgr index d64febf854c..08dddbd4d1a 100755 --- a/Master/texmf-dist/texconfig/tcfmgr +++ b/Master/texmf-dist/texconfig/tcfmgr @@ -1,5 +1,7 @@ #!/bin/sh -# $Id: tcfmgr 28922 2013-01-24 01:12:02Z karl $ +# $Id: tcfmgr 34641 2014-07-17 16:38:18Z karl $ +# tcfmgr - TeX configuration file manager (sort of). +# Public domain. Originally written by Thomas Esser. # invoke the right shell: @@ -13,7 +15,10 @@ test -f /bin/bsh && test -z "$RUNNING_BSH" \ && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; } unset RUNNING_BSH -export PATH +# preferentially use subprograms from our own directory. +mydir=`echo "$0" | sed 's,/[^/]*$,,'` +mydir=`cd "$mydir" && pwd` +PATH="$mydir:$PATH"; export PATH # hack around a bug in zsh: test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' -- cgit v1.2.3