diff options
| author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-23 20:31:22 +0200 | 
|---|---|---|
| committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-23 20:31:22 +0200 | 
| commit | 610d1e92ba369d82653769af9078b4701ab2582a (patch) | |
| tree | 259bf5f9b47da7cb854884eadc401460eed942ad /luaotfload.dtx | |
| parent | bfa92be482aad95aaad0ea9fc6400c95d40a059a (diff) | |
| download | luaotfload-610d1e92ba369d82653769af9078b4701ab2582a.tar.gz | |
remove ``lfs.mkdirs()`` hack
Diffstat (limited to 'luaotfload.dtx')
| -rw-r--r-- | luaotfload.dtx | 57 | 
1 files changed, 0 insertions, 57 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx index 8042a6f..2f0df9b 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -1453,21 +1453,11 @@ luaotfload.module = {  local luatexbase       = luatexbase -local getmetatable     = getmetatable -local rawset           = rawset  local setmetatable     = setmetatable  local type, next       = type, next - -local kpseexpand_path  = kpse.expand_path -local kpseexpand_var   = kpse.expand_var  local kpsefind_file    = kpse.find_file -local lfsisdir         = lfs.isdir  local lfsisfile        = lfs.isfile -local lfsmkdir         = lfs.mkdir -local stringexplode    = string.explode -local stringgmatch     = string.gmatch -local stringsub        = string.sub  local add_to_callback, create_callback =        luatexbase.add_to_callback, luatexbase.create_callback @@ -1516,53 +1506,6 @@ if tex.luatexversion < luatex_version then  end  %    \end{macrocode} -%     Create \verb+$TEXMFCACHE+ if not present. This is necessary due to a bug -%     in Luatex-Fonts that surfaces if none of the possible cache -%     directories exists. We add a fixed version of \luafunction{lfs.mkdirs} first -%     that will be installed as soon as \fileent{l-file.lua} tries to insert its -%     buggy version. -% -%    \begin{macrocode} - -local ostype      = os.type -local mkdirs = function (path) -  local full -  if ostype ~= "windows" and stringsub(path, 1, 1) == "/" then -    --- absolute path, force initial backslash -    full = "" -  end -  for sub in stringgmatch(path,"([^\\/]+)") do -    if full then -      full = full .. "/" .. sub -    else -      full = sub -    end -    if not lfsisdir(full) then -      lfsmkdir(full) -    end -  end -end - ---- <hack version="2"> - -local backup_mkdirs -- just in case - -local lfs_mt = getmetatable(lfs) or { } --- should be empty - -lfs_mt.__newindex = function (t, k, v) -  if k == "mkdirs" then -    backup_mkdirs = v               --> backup -    rawset(t, "mkdirs", mkdirs)     --> ours -  else -- insert normally -    t[k] = v -  end -end - -setmetatable(lfs, lfs_mt) - ---- </hack> - -%    \end{macrocode}  % \subsection{Module loading}  % We load the files imported from \CONTEXT with this function.  % It automatically prepends the prefix \fileent{luaotfload-} to its  | 
