summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-11-26 23:40:23 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2015-11-26 23:40:23 +0100
commit424c5b624b7073e8502a096ab271e422b866e0eb (patch)
tree4bdc31f0321e3bc264e18de89653db60905b3f0d /scripts
parent54f5f029605dd3030fcd1d834e447370ddd7823a (diff)
parentf0709824926bf19cf4eb638d9e3c2192bb9131b3 (diff)
downloadluaotfload-424c5b624b7073e8502a096ab271e422b866e0eb.tar.gz
Merge pull request #299 from phi-gamma/master
rc2
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkimport11
1 files changed, 1 insertions, 10 deletions
diff --git a/scripts/mkimport b/scripts/mkimport
index 9ea224a..abe1608 100755
--- a/scripts/mkimport
+++ b/scripts/mkimport
@@ -480,15 +480,6 @@ local import_file = function (name, kind, def, cat)
end --[[ [local import_file = function (name, kind)] ]]
local import = function (arg)
- if #arg > 1 then
- local tgt = parms.target
- local name = tgt or die ("invalid filename " .. tostring (tgt))
- local stat = import_file (name)
- if stat == import_failed then
- die ("failed to import file " .. name)
- end
- status ("import status for file %s: %s", name, import_status[stat])
- end
--- Multiple files
local statcount = { } -- import status codes -> size_t
for cat, defs in next, imports do
@@ -693,7 +684,7 @@ local build_paths = function (argv)
--- also set the target name
local fname = argv[3]
local dir = filedirname (fname)
- if not lfsisdir (dir) then
+ if not string.is_empty (dir) and not lfsisdir (dir) then
die ("third argument must be point into writable directory, not ā€œ%sā€",
argv[3])
end