elua: expand the input file lists for xgettext call (we want to leave out lua files)

This commit is contained in:
Daniel Kolesa 2014-05-07 11:33:20 +01:00 committed by Daniel Kolesa
parent bebe011676
commit d90bba655f
1 changed files with 13 additions and 2 deletions

View File

@ -196,10 +196,21 @@ if hasxgettext and not onlylua then
end
end
end
local inputs = {}
for i, opt in ipairs(opts) do
gargs[#gargs + 1] = build_opt(opt)
if opt[1] ~= "f" then
gargs[#gargs + 1] = build_opt(opt)
else
local f = io.open(opt[2])
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
local ngargs = #gargs
for i, v in ipairs(args) do
if not v:lower():match("^.+%.lua$") then
gargs[#gargs + 1] = v