Removed duplicate newlines from embedded scripts
This commit is contained in:
parent
1c1ad931b4
commit
bc2a84b7a0
28
premake.lua
28
premake.lua
@ -1,28 +0,0 @@
|
||||
if (target == "vs2002" or target == "vs2003") then
|
||||
error(
|
||||
"\nBecause of compiler limitations, Visual Studio 2002 and 2003 aren't able to\n" ..
|
||||
"build this version of Premake. Use the free Visual Studio Express instead.", 0)
|
||||
end
|
||||
|
||||
|
||||
project.name = "Premake4"
|
||||
|
||||
project.configs = { "Release", "Debug" }
|
||||
|
||||
-- Output directories
|
||||
|
||||
project.config["Debug"].bindir = "bin/debug"
|
||||
project.config["Release"].bindir = "bin/release"
|
||||
|
||||
|
||||
-- Packages
|
||||
|
||||
dopackage("src")
|
||||
|
||||
|
||||
-- Cleanup code
|
||||
|
||||
function doclean(cmd, arg)
|
||||
docommand(cmd, arg)
|
||||
os.rmdir("bin")
|
||||
end
|
@ -128,8 +128,11 @@ end
|
||||
s = s:gsub("[\t]", "")
|
||||
|
||||
-- strip duplicate line feeds
|
||||
s = s:gsub("\n+", "\n")
|
||||
|
||||
local t = s
|
||||
repeat
|
||||
s = t
|
||||
t = s:gsub("\\n\\n", "\\n")
|
||||
until s == t
|
||||
|
||||
out:write("\t\"")
|
||||
out:write(s)
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user