From a5693d7b6f8109c09b231c2ac92c08aef7bd442d Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 24 Nov 2015 00:42:35 +0100 Subject: [mkimport] remove code obstructing user-specified import path --- scripts/mkimport | 9 --------- 1 file changed, 9 deletions(-) (limited to 'scripts/mkimport') diff --git a/scripts/mkimport b/scripts/mkimport index 9ea224a..0be0847 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 -- cgit v1.2.3 From f3737e68ca8b39ecf0368ac9781fb6b32c57c560 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 24 Nov 2015 00:50:32 +0100 Subject: [mkimport] allow output in pwd --- scripts/mkimport | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/mkimport') diff --git a/scripts/mkimport b/scripts/mkimport index 0be0847..abe1608 100755 --- a/scripts/mkimport +++ b/scripts/mkimport @@ -684,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 -- cgit v1.2.3