summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/texconfig
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-07-17 16:41:08 +0000
committerKarl Berry <karl@freefriends.org>2014-07-17 16:41:08 +0000
commitbd345c5c73d812c9d505b379c61a5059cc920678 (patch)
treec306d9ea32bdffb782751e0d921e63cdb02d1fc9 /Master/texmf-dist/texconfig
parent8c9b24632b649534234c3220606e0fd0b9c7e28c (diff)
sync with dev change
git-svn-id: svn://tug.org/texlive/trunk@34642 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/texconfig')
-rwxr-xr-xMaster/texmf-dist/texconfig/tcfmgr9
1 files changed, 7 insertions, 2 deletions
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+"$@"}'='"$@"'