summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-05-28 22:15:54 +0000
committerKarl Berry <karl@freefriends.org>2006-05-28 22:15:54 +0000
commit813b0e8c2f1f82f1a94e36cb3b1ef90bf60cec8b (patch)
treea8129504df5ed4891d33470d4256ddb4ad9c788b /Build
parentc3c87346c0cbca209e6fb9ed6084b95f274edcb9 (diff)
use --var-value instead of --expand-path, and mkdir if necessary. From Ralf W.
git-svn-id: svn://tug.org/texlive/trunk@1607 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rwxr-xr-xBuild/source/texk/kpathsea/mktexnam7
1 files changed, 5 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/mktexnam b/Build/source/texk/kpathsea/mktexnam
index f9ed6902a1b..2993be3c5f1 100755
--- a/Build/source/texk/kpathsea/mktexnam
+++ b/Build/source/texk/kpathsea/mktexnam
@@ -145,7 +145,7 @@ if test -n "${MT_DESTROOT}"; then
# Some additional uglyness handles the case where $TEXMFVAR exists
# but $TEXMFVAR/fonts doesn't (yet).
if test "x$USE_TEXMFVAR" = x1; then
- : ${MT_TEXMFVAR=`kpsewhich --expand-path='$TEXMFVAR'`}
+ : ${MT_TEXMFVAR=`kpsewhich --var-value=TEXMFVAR`}
MT_DESTROOT=$MT_TEXMFVAR/fonts
if test -z "$MT_TEXMFVAR"; then
# Path expansion of $TEXMFVAR was empty.
@@ -158,9 +158,12 @@ if test -n "${MT_DESTROOT}"; then
# De we have write access and permission?
kpseaccess -w "$MT_TEXMFVAR" || FALLBACK=1
test -w "$MT_TEXMFVAR" || FALLBACK=1
- else
+ elif test -e "$MT_TEXMFVAR"; then
# TEXMFVAR defined and exists, but it is not a directory?
FALLBACK=1
+ else
+ # TEXMFVAR defined but does not exist, try to create it
+ MT_FEATURES=none "$MT_MKTEXDIR" "$MT_TEXMFVAR" || FALLBACK=1
fi
else
# Do we have write access and permission?