diff options
author | Jason Perkins <starkos@industriousone.com> | 2010-12-13 01:49:17 +0300 |
---|---|---|
committer | Jason Perkins <starkos@industriousone.com> | 2010-12-13 01:49:17 +0300 |
commit | e1518ded82a5df45137ef49476e63a07685ea079 (patch) | |
tree | 7c28ea6e1df635b8906d4a957f64a0632ff4847e | |
parent | 344f2e436df19b2e8d71a8894c66d287ac0f58df (diff) |
Properly pass return codes back to shell in release builds
-rw-r--r-- | CHANGES.txt | 8 | ||||
-rw-r--r-- | scripts/RELEASE.txt | 36 | ||||
-rw-r--r-- | scripts/release.lua | 41 | ||||
-rw-r--r-- | src/host/premake.c | 8 |
4 files changed, 51 insertions, 42 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index bbbcd66..58067a2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,12 @@ +------- + 4.3.1 +------- + * Bug 3119793: Applied patch to correct the matching of ClCompile blocks with vs10 and PCH (Dan Dunham) -* Feature 3118000 and Bug 2920784 Symbol visibility, yet this only fixes a Release build as Xcode is very much broken in Debug(burnson2) +* Bug 2920784: Symbol visibility in Xcode3 libraries (burnson2) * Bug 3133743: Sets ONLY_ACTIVE_ARCH = YES in Xcode debug builds (James Wynn) +* Properly pass return codes back to shell in release builds + ------- 4.3 diff --git a/scripts/RELEASE.txt b/scripts/RELEASE.txt index 476d8da..cf99eed 100644 --- a/scripts/RELEASE.txt +++ b/scripts/RELEASE.txt @@ -20,4 +20,38 @@ PREP * Commit all changes to premake-stable - * Tag premake-stable with the version number + * Tag premake-stable with the version number and push + + * Pull changes to premake-dev + + +BUILD + + * On each platform, run `premake4 release {version} binary` + + * On one platform, run `premake4 release {version} source` + + * If desired, copy binary to local path + + * Upload packages (in release/) to SourceForge + + +RELEASE + + * On SourceForge, set package properties (platform, etc.) + + * Update the download page + http://industriousone.com/premake/download + + * Post release announcement to the forums + + * Update the Latest News on the project home page + + * Post annoucement to @industrious on Twitter + + * Post announcement to email list + + * Post announcement to Industrious Facebook group + + * Add release to Freshmeat + http://freshmeat.net/projects/premake diff --git a/scripts/release.lua b/scripts/release.lua index c486753..e11757a 100644 --- a/scripts/release.lua +++ b/scripts/release.lua @@ -1,31 +1,8 @@ -- -- Prepare a new Premake release. This is still incomplete and some manual --- work is needed to get everything packaged up. --- --- BEFORE RUNNING THIS SCRIPT: --- * Make sure all tests pass on Windows AND Posix systems --- * Update CHANGELOG.txt --- * Run `premake4 embed` --- * Commit all changes to premake-stable --- * Tag premake-stable with the version number --- * Prepare release news item --- --- RUN THE SCRIPT: --- On each platform, run `premake4 release x.x binary` --- (and copy binary to /usr/local/bin if desired) --- On one platform, run `premake4 release x.x source` +-- work is needed to get everything packaged up. See RELEASE.txt in this +-- folder for the full checklist. -- --- AFTER RUNNING THIS SCRIPT: --- * Upload release files to SourceForge --- * On SourceForge, set file platforms and release changelog --- * Update the download page on Industrious One --- * Post the news item to the forums --- * Update the Premake project page on Industrious One --- * Post to Twitter --- * Send to email list --- * Add release to Freshmeat (http://freshmeat.net/projects/premake) --- * Push changes to repositories on BitBucket --- -- Info on using Mercurial to manage releases: -- http://hgbook.red-bean.com/read/managing-releases-and-branchy-development.html -- http://stevelosh.com/blog/2009/08/a-guide-to-branching-in-mercurial/ @@ -84,14 +61,7 @@ function dorelease() -- print( "") - print( "BEFORE RUNNING THIS SCRIPT you should..." ) - print( "* Pass all tests on Windows AND Posix systems" ) - print( "* Update CHANGELOG.txt") - print( "* Run `premake4 embed`") - print( "* Commit all changes to premake-stable" ) - print( "* Tag premake-stable with the version number" ) - print( "* Prepare release news item") - + print( "BEFORE RUNNING THIS SCRIPT follow the checklist in RELEASE.txt" ) print( "") print( "Press [Enter] to begin.") io .read() @@ -236,11 +206,8 @@ function dorelease() -- Clean up -- + os.rmdir(pkgname) --- --- Remind me of required next steps --- - print("") print( "Finished.") diff --git a/src/host/premake.c b/src/host/premake.c index 85b61b6..76ebe83 100644 --- a/src/host/premake.c +++ b/src/host/premake.c @@ -263,10 +263,12 @@ int load_builtin_scripts(lua_State* L) lua_getglobal(L, "_premake_main"); if (lua_pcall(L, 0, 1, 0) != OKAY) { - printf(ERROR_MESSAGE, lua_tostring(L,-1)); + printf(ERROR_MESSAGE, lua_tostring(L, -1)); return !OKAY; } - - return OKAY; + else + { + return (int)lua_tonumber(L, -1); + } } #endif |