elua: insert input files always after opts

This commit is contained in:
Daniel Kolesa 2014-05-07 11:35:02 +01:00 committed by Daniel Kolesa
parent d90bba655f
commit c0baa15b11
1 changed files with 10 additions and 7 deletions

View File

@ -196,17 +196,20 @@ if hasxgettext and not onlylua then
end end
end end
end end
local inputs = {} local ifiles = {}
for i, opt in ipairs(opts) do for i, opt in ipairs(opts) do
if opt[1] ~= "f" then if opt[1] ~= "f" then
gargs[#gargs + 1] = build_opt(opt) gargs[#gargs + 1] = build_opt(opt)
else else
local f = io.open(opt[2]) ifiles[#ifiles + 1] = opt[2]
if f then end
for line in f:lines() do end
if not line:lower():match("^.+%.lua$") then for i, v in ipairs(ifiles) do
gargs[#gargs + 1] = line local f = io.open(v)
end if f then
for line in f:lines() do
if not line:lower():match("^.+%.lua$") then
gargs[#gargs + 1] = line
end end
end end
end end