diff options
author | Oliver Schneider <oliver@assarbad.net> | 2015-11-15 02:14:50 +0300 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2015-11-15 02:14:50 +0300 |
commit | a20251ef1bb9516ab8dc26cc5039d61a5e6a65dc (patch) | |
tree | 8a4983ef152666c0b1fb3b4aa9cbeee34eef844a /release.cmd | |
parent | b5121cf3af9d30c559af3e40636a08b8fb345c12 (diff) |
Adding the vs2015.lua file to the project
New setvcvars.cmd
Adding tip revision number and identifier to the binary (version info resource)
--HG--
branch : WDS-build
Diffstat (limited to 'release.cmd')
-rw-r--r-- | release.cmd | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/release.cmd b/release.cmd index 38fa8c5..ae47122 100644 --- a/release.cmd +++ b/release.cmd @@ -1,5 +1,11 @@ @echo off
@if not "%OS%"=="Windows_NT" @(echo This script requires Windows NT 4.0 or later to run properly! & goto :EOF)
+setlocal ENABLEEXTENSIONS & pushd .
call setvcvars.cmd 8.0
if NOT defined VCVER_FRIENDLY echo Unfortunately setvcvars.cmd didn't do its job. Fix the problem and run this script again.&goto :EOF
-vcbuild /rebuild /time Premake4.vs8.sln "Release|Win32"
\ No newline at end of file +set HGTIPFILE="%~dp0src\host\hgtip.h"
+for /f %%i in ('hg id -i -r tip') do @echo #define HG_TIP_ID "%%i" > %HGTIPFILE%
+for /f %%i in ('hg id -n -r tip') do @echo #define HG_TIP_REVNO "%%i" >> %HGTIPFILE%
+if exist %HGTIPFILE% type %HGTIPFILE%
+vcbuild /rebuild /time Premake4.vs8.sln "Publish|Win32"
+popd & endlocal & goto :EOF
|