diff options
| author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-10 02:11:57 -0700 | 
|---|---|---|
| committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-10 02:11:57 -0700 | 
| commit | fb67cecbfa8707ece8d26f256b104616dc5810ee (patch) | |
| tree | 4f4d0dad3f282cc543527cd4520261bfca73045c /luaotfload.dtx | |
| parent | 2aeccd26f3cb654930ac4f310881c62ba2d796b4 (diff) | |
| parent | 16fbe9db46002faa0b9e54214e42992cc3fdd7ba (diff) | |
| download | luaotfload-fb67cecbfa8707ece8d26f256b104616dc5810ee.tar.gz | |
Merge pull request #56 from phi-gamma/master
make node mode work again
Diffstat (limited to 'luaotfload.dtx')
| -rw-r--r-- | luaotfload.dtx | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/luaotfload.dtx b/luaotfload.dtx index daaa48c..0d062a6 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -1290,6 +1290,23 @@ if tex.luatexversion < luatex_version then  end  %    \end{macrocode} +%   Prepare directories: the cache function in Luatex-Fonts checks for a +%   writable directory only once during startup. If there is no +%   \fileent{texmf-var} at this time it will create a subdirectory +%   \fileent{./luatex-cache} instead. +%   Thus everything has to be laid out before we load the fontloader. +% +%    \begin{macrocode} + +local cachepath = kpse.expand_var"$TEXMFVAR" +if not lfs.isdir(cachepath) then +    dir.mkdirs(cachepath) +    if not lfs.isdir(cachepath) then +        error( "ERROR could not create directory %s", cachepath) +    end +end + +%    \end{macrocode}  % \subsection{Module loading}  % We load the files imported from \CONTEXT with this function.  % It automatically prepends the prefix \fileent{luaotfload-} to its | 
