Another fix to my fix

This commit is contained in:
starkos 2008-06-13 14:13:20 +00:00
parent 02719c3d11
commit 79d8f8026c

View File

@ -107,16 +107,18 @@ project.name = "Premake4"
print("Building release version...") print("Building release version...")
os.chdir(folder) os.chdir(folder)
os.execute("premake --clean --no-tests --target gnu >../release.log") os.execute("premake --clean --no-tests --target gnu >../release.log")
os.chdir("bin/release")
if (windows) then if (windows) then
os.execute("make CONFIG=Release >../release.log") os.execute("make CONFIG=Release >../release.log")
os.chdir("bin/release")
result = os.execute(string.format("7z a -tzip ..\\..\\..\\premake-win32-%s.zip premake4.exe >../release.log", version)) result = os.execute(string.format("7z a -tzip ..\\..\\..\\premake-win32-%s.zip premake4.exe >../release.log", version))
elseif (macosx) then elseif (macosx) then
os.execute('TARGET_ARCH="-arch i386 -arch ppc" make CONFIG=Release >../release.log') os.execute('TARGET_ARCH="-arch i386 -arch ppc" make CONFIG=Release >../release.log')
os.chdir("bin/release")
result = os.execute(string.format("tar czvf ../../../premake-macosx-%s.tar.gz premake4 >../release.log", version)) result = os.execute(string.format("tar czvf ../../../premake-macosx-%s.tar.gz premake4 >../release.log", version))
else else
os.execute("make CONFIG=Release >../release.log") os.execute("make CONFIG=Release >../release.log")
os.chdir("bin/release")
result = os.execute(string.format("tar czvf ../../../premake-linux-%s.tar.gz bin/release/premake4 >../release.log", version)) result = os.execute(string.format("tar czvf ../../../premake-linux-%s.tar.gz bin/release/premake4 >../release.log", version))
end end