win-pvdrivers

annotate makedist.bat @ 611:8fdba34031a8

Tag hg on build when the TAG_HG file is present
author James Harper <james.harper@bendigoit.com.au>
date Wed Jul 15 19:54:03 2009 +1000 (2009-07-15)
parents ac614e49832c
children 748f32b33e5d
rev   line source
james@143 1 @echo off
james@537 2 IF NOT EXIST set_ddk_path.bat ECHO >set_ddk_path.bat SET DDK_PATH=C:\WinDDK\6001.18002
james@314 3
james@538 4 SET VERSION=0.10.0
james@538 5 SET BUILD_NUMBER=0
james@538 6 IF EXIST build_number.bat CALL build_number.bat
james@538 7
james@538 8 SET GPLPV_VERSION=%VERSION%.%BUILD_NUMBER%
james@538 9
james@538 10 SET /A BUILD_NUMBER=%BUILD_NUMBER%+1
james@538 11 ECHO >build_number.bat SET BUILD_NUMBER=%BUILD_NUMBER%
james@538 12
james@538 13 ECHO BUILDING %GPLPV_VERSION%
james@538 14
james@524 15 CALL set_ddk_path.bat
james@524 16
james@543 17 SET PV_DIR=%CD%
james@537 18
james@543 19 ECHO PV_DIR=%PV_DIR%
james@541 20
james@544 21 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WXP && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@543 22
james@544 23 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@543 24
james@544 25 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre x64 WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@543 26
james@544 27 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@543 28
james@544 29 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre x64 WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@543 30
james@544 31 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk WXP && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@544 32
james@544 33 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@544 34
james@544 35 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk x64 WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@544 36
james@547 37 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@544 38
james@544 39 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk x64 WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@611 40
james@611 41 IF NOT EXIST TAG_HG GOTO DONT_TAG
james@611 42 IF EXIST BUILD*.WRN GOTO DONT_TAG
james@611 43 IF EXIST BUILD*.ERR GOTO DONT_TAG
james@611 44
james@611 45 hg tag %GPLPV_VERSION%
james@611 46
james@611 47 :DONT_TAG