diff options
author | Norbert Preining <norbert@preining.info> | 2022-10-07 03:03:15 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-10-07 03:03:15 +0000 |
commit | bbbfa0a90645d4da46b1492f6513b28a01eb78da (patch) | |
tree | dcbf82e9f2bd50ac7596114690ad31ca7a6dbf8c /macros/luatex/generic/luatexja/src/ltj-base.lua | |
parent | 678708e90ffe138885ed8c06b6780d491b80fae5 (diff) |
CTAN sync 202210070303
Diffstat (limited to 'macros/luatex/generic/luatexja/src/ltj-base.lua')
-rw-r--r-- | macros/luatex/generic/luatexja/src/ltj-base.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/macros/luatex/generic/luatexja/src/ltj-base.lua b/macros/luatex/generic/luatexja/src/ltj-base.lua index 41caef5b4c..4a95616777 100644 --- a/macros/luatex/generic/luatexja/src/ltj-base.lua +++ b/macros/luatex/generic/luatexja/src/ltj-base.lua @@ -226,9 +226,12 @@ end -- But sometimes we want to create only the precompiled cache, -- when its 'text' version is already present in LuaTeX-ja distribution. -require('lualibs-lpeg') -- string.split -require('lualibs-os') -- os.type -require('lualibs-gzip') -- gzip.* +if not os.type then require'lualibs-os' end +if not string.split then require'lualibs-lpeg' end +if not gzip then + if kpse.find_file('lualibs-util-zip', 'lua') then require'lualibs-util-zip' + else require'lualibs-gzip' end +end do local kpse_var_value = kpse.var_value |