summaryrefslogtreecommitdiff
path: root/mkluatexfontdb.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-03-12 13:14:34 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-03-12 13:14:34 +0200
commitb2c0fdd69524d4eb97a5f0350fae195bf3c6c3fa (patch)
treeb918fb1096500a61483b333891179d411e90d556 /mkluatexfontdb.lua
parent8070e6c1b481dcd340810ddc680aaccbf4ef1997 (diff)
downloadluaotfload-b2c0fdd69524d4eb97a5f0350fae195bf3c6c3fa.tar.gz
LUAROCKS_UNAME_S doesn't work in tex mode
Use os.type and os.name instead, if os.name doesn't return cygwin then luatex need to be fixed.
Diffstat (limited to 'mkluatexfontdb.lua')
-rw-r--r--mkluatexfontdb.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkluatexfontdb.lua b/mkluatexfontdb.lua
index e8ce1a5..d4782ea 100644
--- a/mkluatexfontdb.lua
+++ b/mkluatexfontdb.lua
@@ -95,7 +95,7 @@ local function do_run_fc_cache(c)
-- TODO: detect if fc-cache is available
end
local toexec = 'fc-cache'
- if fonts.system == 'windows' then
+ if os.type == 'windows' then
toexec = 'fc-cache.exe' -- TODO: to test on a non-cygwin Windows
end
log('executing %s...\n', toexec)