Updated packaging script
Find all occurrences of files wanting to be deleted rather than assuming locations
Added vs2017 and bsd to project file generation
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))
+ 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
- for _, name in ipairs { ".DS_Store", ".git", ".gitignore", ".gitmodules", ".travis.yml", ".editorconfig", "Bootstrap.mak" } do
- os.remove(path.join(module, name))
end
- end
-
--
-- Generate a source package.
@@ -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("..")
