Removed duplicate newlines from embedded scripts

This commit is contained in:
starkos 2009-06-15 18:23:53 +00:00
parent 1c1ad931b4
commit bc2a84b7a0
3 changed files with 42 additions and 67 deletions

View File

@ -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

View File

@ -128,8 +128,11 @@ end
s = s:gsub("[\t]", "") s = s:gsub("[\t]", "")
-- strip duplicate line feeds -- 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("\t\"")
out:write(s) out:write(s)

File diff suppressed because one or more lines are too long