summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/web2c/mktexdir
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/web2c/mktexdir')
-rwxr-xr-xMaster/texmf-dist/web2c/mktexdir11
1 files changed, 9 insertions, 2 deletions
diff --git a/Master/texmf-dist/web2c/mktexdir b/Master/texmf-dist/web2c/mktexdir
index e9c2100d879..f39408b4c1f 100755
--- a/Master/texmf-dist/web2c/mktexdir
+++ b/Master/texmf-dist/web2c/mktexdir
@@ -6,8 +6,15 @@
# Modified for sticky directory creation, --help, --version, more,
# by Thomas Esser, Karl Berry, Olaf Weber, et al.
-version='$Id: mktexdir 18383 2010-05-20 18:31:24Z karl $'
-usage="Usage: $0 DIRS...
+version='$Id: mktexdir 34656 2014-07-18 23:38:50Z karl $'
+progname=`echo $0 | sed 's%.*/%%'`
+
+# preferentially use subprograms from our own directory.
+mydir=`echo "$0" | sed 's,/[^/]*$,,'`
+mydir=`cd "$mydir" && pwd`
+PATH="$mydir:$PATH"; export PATH
+
+usage="Usage: $0 DIR...
Create each DIR, including any missing leading directories."
mt_max_args=$#