win-pvdrivers

annotate makedist.bat @ 783:644e5ddb1b47

Handle SCSI INQUIRY command better in xenvbd
author James Harper <james.harper@bendigoit.com.au>
date Mon Feb 15 20:53:57 2010 +1100 (2010-02-15)
parents fc6e317ad8c8
children d538e0141114
rev   line source
james@143 1 @echo off
james@716 2 IF NOT EXIST set_ddk_path.bat ECHO >set_ddk_path.bat SET DDK_PATH=C:\WinDDK\7600.16385.0
james@314 3
james@716 4 SET VERSION=0.11.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@661 10 SET /A NEW_BUILD_NUMBER=%BUILD_NUMBER%+1
james@661 11 ECHO >build_number.bat SET BUILD_NUMBER=%NEW_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@730 19 SET SIGNTOOL=%DDK_PATH%\bin\x86\signtool.exe
james@730 20 IF NOT EXIST %SIGNTOOL% SET SIGNTOOL=%DDK_PATH%\bin\selfsign\signtool.exe
james@730 21 SET CERT_NAME=GPLPV_Test_Cert
james@730 22
james@730 23 REM IF NOT EXIST SIGN_CONFIG.BAT GOTO DONT_SIGN
james@730 24 REM CALL SIGN_CONFIG.BAT
james@541 25
james@645 26 IF NOT EXIST gplpv.cer "%DDK_PATH%"\bin\selfsign\makecert -r -pe -ss PrivateCertStore -n "CN=GPLPV_Test_Cert" gplpv.cer
james@645 27
james@650 28 mkdir symbols\%GPLPV_VERSION%
james@650 29
james@730 30 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk WXP && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call archive.bat && call wix.bat"
james@730 31
james@730 32 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call archive.bat && call wix.bat"
james@730 33
james@730 34 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk x64 WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call archive.bat && call wix.bat"
james@730 35
james@730 36 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call archive.bat && call wix.bat"
james@730 37
james@730 38 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk x64 WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call archive.bat && call wix.bat"
james@730 39
james@544 40 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 41
james@544 42 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 43
james@544 44 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 45
james@544 46 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 47
james@544 48 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 49
james@611 50 IF NOT EXIST TAG_HG GOTO DONT_TAG
james@611 51 IF EXIST BUILD*.WRN GOTO DONT_TAG
james@611 52 IF EXIST BUILD*.ERR GOTO DONT_TAG
james@611 53
james@611 54 hg tag %GPLPV_VERSION%
james@611 55
james@611 56 :DONT_TAG