From 6a2c71346c7ff411b496a444bc9bb4086d0bd2dc Mon Sep 17 00:00:00 2001 From: eroux Date: Wed, 17 Mar 2010 11:30:11 +0100 Subject: Fixing database generation under windows --- otfl-font-nms.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index d241745..d742610 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -288,14 +288,13 @@ end -- - a/../b -> b -- - /cygdrive/a/b -> a:/b local function path_normalize(path) - if os.type == "windows" then + if os.type == "windows" or os.type == "msdos" or os.name == "cygwin" then path = path:gsub('\\', '/') path = path:lower() - end - path = file.collapse_path(path) - if os.name == "cygwin" then + -- for cygwin cases... path = path:gsub('^/cygdrive/(%a)/', '%1:/') end + path = file.collapse_path(path) return path end -- cgit v1.2.3