Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release.cmd')
-rw-r--r--release.cmd8
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