From a20251ef1bb9516ab8dc26cc5039d61a5e6a65dc Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Sat, 14 Nov 2015 23:14:50 +0000 Subject: 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 --- release.cmd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'release.cmd') 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 -- cgit v1.2.3