summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/context/stubs
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2011-06-04 12:11:22 +0000
committerTaco Hoekwater <taco@elvenkind.com>2011-06-04 12:11:22 +0000
commit34cb0fd03499f7bbd965a913ad36707781998d0d (patch)
tree200ab3c2f62e0127ae4887cc145e6874ce0ad411 /Master/texmf-dist/scripts/context/stubs
parent50fd342f4452f4e85a09d11222ec3bac6ecb1e51 (diff)
texmfcnf setting got lost
git-svn-id: svn://tug.org/texlive/trunk@22772 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/context/stubs')
-rwxr-xr-xMaster/texmf-dist/scripts/context/stubs/mswin/mtxrun.lua9
-rwxr-xr-xMaster/texmf-dist/scripts/context/stubs/unix/mtxrun9
2 files changed, 8 insertions, 10 deletions
diff --git a/Master/texmf-dist/scripts/context/stubs/mswin/mtxrun.lua b/Master/texmf-dist/scripts/context/stubs/mswin/mtxrun.lua
index 29f2eadb437..5ca97db588e 100755
--- a/Master/texmf-dist/scripts/context/stubs/mswin/mtxrun.lua
+++ b/Master/texmf-dist/scripts/context/stubs/mswin/mtxrun.lua
@@ -2532,10 +2532,12 @@ function file.is_writable(name)
os.remove(name)
return true
end
- else
+ else
+ local existing = lfs.isfile(name)
f = io.open(name,"ab")
if f then
f:close()
+ if not existing then os.remove(name) end
return true
end
end
@@ -11146,10 +11148,7 @@ resolvers.criticalvars = allocate { "SELFAUTOLOC", "SELFAUTODIR", "SELFAUTOPARE
resolvers.luacnfname = 'texmfcnf.lua'
resolvers.luacnfstate = "unknown"
--- resolvers.luacnfspec = '{$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c}' -- what a rubish path
-resolvers.luacnfspec = 'selfautoparent:{/texmf{-local,}{,/web2c},}}'
-
-
+resolvers.luacnfspec = '{selfautodir:,selfautoparent:};{selfautodir:,selfautoparent:}{/share,}/texmf{-local,};{selfautodir:,selfautoparent:}{/share,}/texmf{-local,}/web2c'
local unset_variable = "unset"
diff --git a/Master/texmf-dist/scripts/context/stubs/unix/mtxrun b/Master/texmf-dist/scripts/context/stubs/unix/mtxrun
index 29f2eadb437..5ca97db588e 100755
--- a/Master/texmf-dist/scripts/context/stubs/unix/mtxrun
+++ b/Master/texmf-dist/scripts/context/stubs/unix/mtxrun
@@ -2532,10 +2532,12 @@ function file.is_writable(name)
os.remove(name)
return true
end
- else
+ else
+ local existing = lfs.isfile(name)
f = io.open(name,"ab")
if f then
f:close()
+ if not existing then os.remove(name) end
return true
end
end
@@ -11146,10 +11148,7 @@ resolvers.criticalvars = allocate { "SELFAUTOLOC", "SELFAUTODIR", "SELFAUTOPARE
resolvers.luacnfname = 'texmfcnf.lua'
resolvers.luacnfstate = "unknown"
--- resolvers.luacnfspec = '{$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c}' -- what a rubish path
-resolvers.luacnfspec = 'selfautoparent:{/texmf{-local,}{,/web2c},}}'
-
-
+resolvers.luacnfspec = '{selfautodir:,selfautoparent:};{selfautodir:,selfautoparent:}{/share,}/texmf{-local,};{selfautodir:,selfautoparent:}{/share,}/texmf{-local,}/web2c'
local unset_variable = "unset"