Skip to content

Commit

Permalink
Merge pull request #749 from LORgames/ssurtees/updatePackaging
Browse files Browse the repository at this point in the history
Updated packaging script
  • Loading branch information
starkos authored Apr 20, 2017
2 parents 42bfc22 + 438949a commit 74b2f46
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,16 @@

print("Cleaning up the source tree...")
os.rmdir("packages")
os.rmdir(".git")

local modules = table.join(".", os.matchdirs("modules/*"))
for _, module in ipairs(modules) do
for _, name in ipairs { ".git" } do
os.rmdir(path.join(module, name))
end
for _, name in ipairs { ".DS_Store", ".git", ".gitignore", ".gitmodules", ".travis.yml", ".editorconfig", "Bootstrap.mak" } do
os.remove(path.join(module, name))
local removelist = { ".DS_Store", ".git", ".gitignore", ".gitmodules", ".travis.yml", ".editorconfig", "appveyor.yml", "Bootstrap.mak" }
for _, removeitem in ipairs(removelist) do
local founditems = os.matchfiles("**" .. removeitem)
for _, item in ipairs(founditems) do
os.remove(item)
end
end


--
-- Generate a source package.
--
Expand All @@ -152,9 +150,11 @@ if kind == "source" then
execQuiet("premake5 /to=build/vs2012 vs2012")
execQuiet("premake5 /to=build/vs2013 vs2013")
execQuiet("premake5 /to=build/vs2015 vs2015")
execQuiet("premake5 /to=build/vs2017 vs2017")
execQuiet("premake5 /to=build/gmake.windows /os=windows gmake")
execQuiet("premake5 /to=build/gmake.unix /os=linux gmake")
execQuiet("premake5 /to=build/gmake.macosx /os=macosx gmake")
execQuiet("premake5 /to=build/gmake.bsd /os=bsd gmake")

print("Creating source code package...")
os.chdir("..")
Expand Down

0 comments on commit 74b2f46

Please sign in to comment.