diff options
author | Karl Berry <karl@freefriends.org> | 2006-05-28 22:15:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-05-28 22:15:54 +0000 |
commit | 813b0e8c2f1f82f1a94e36cb3b1ef90bf60cec8b (patch) | |
tree | a8129504df5ed4891d33470d4256ddb4ad9c788b /Master/texmf/web2c/mktexnam | |
parent | c3c87346c0cbca209e6fb9ed6084b95f274edcb9 (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 'Master/texmf/web2c/mktexnam')
-rwxr-xr-x | Master/texmf/web2c/mktexnam | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/texmf/web2c/mktexnam b/Master/texmf/web2c/mktexnam index f9ed6902a1b..2993be3c5f1 100755 --- a/Master/texmf/web2c/mktexnam +++ b/Master/texmf/web2c/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? |