Merge pull request #1910 from Jarod42/fix_case

Fix case.
This commit is contained in:
Samuel Surtees 2022-07-15 01:03:57 +10:00 committed by GitHub
commit ea2971dd50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -388,19 +388,19 @@
local dependencies = {}
local makefilerules = {}
local function addrule(dependencies, makefilerules, config, filename)
if #config.buildcommands == 0 or #config.buildOutputs == 0 then
if #config.buildcommands == 0 or #config.buildoutputs == 0 then
return false
end
local inputs = table.implode(project.getrelative(cfg.project, config.buildInputs), "", "", " ")
local inputs = table.implode(project.getrelative(cfg.project, config.buildinputs), "", "", " ")
if filename ~= "" and inputs ~= "" then
filename = filename .. " "
end
local outputs = project.getrelative(cfg.project, config.buildOutputs[1])
local outputs = project.getrelative(cfg.project, config.buildoutputs[1])
local buildmessage = ""
if config.buildmessage then
buildmessage = "\t@{ECHO} " .. config.buildmessage .. "\n"
end
local commands = table.implode(config.buildCommands,"\t","\n","")
local commands = table.implode(config.buildcommands,"\t","\n","")
table.insert(makefilerules, os.translateCommandsAndPaths(outputs .. ": " .. filename .. inputs .. "\n" .. buildmessage .. commands, cfg.project.basedir, cfg.project.location))
table.insertflat(dependencies, outputs)
return true

View File

@ -430,7 +430,7 @@
end
function m.buildStep(cfg)
if #cfg.buildCommands > 0 or #cfg.buildOutputs > 0 or #cfg.buildInputs > 0 or cfg.buildMessage then
if #cfg.buildcommands > 0 or #cfg.buildoutputs > 0 or #cfg.buildinputs > 0 or cfg.buildmessage then
p.push('<CustomBuildStep>')
p.callArray(m.elements.buildStep, cfg)