win-pvdrivers

annotate makedist.bat @ 846:1b1fde762e0c

Fix a bug in scsiport crash dump / hibernate
author James Harper <james.harper@bendigoit.com.au>
date Wed Feb 09 13:33:45 2011 +1100 (2011-02-09)
parents 9c0c4210b778
children 60e760e70c21
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@819 3 IF NOT EXIST set_ddk_path_2k.bat ECHO >set_ddk_path_2k.bat SET DDK_PATH_2K=C:\WinDDK\6001.18002
james@314 4
james@716 5 SET VERSION=0.11.0
james@538 6 SET BUILD_NUMBER=0
james@538 7 IF EXIST build_number.bat CALL build_number.bat
james@538 8
james@538 9 SET GPLPV_VERSION=%VERSION%.%BUILD_NUMBER%
james@538 10
james@661 11 SET /A NEW_BUILD_NUMBER=%BUILD_NUMBER%+1
james@661 12 ECHO >build_number.bat SET BUILD_NUMBER=%NEW_BUILD_NUMBER%
james@538 13
james@538 14 ECHO BUILDING %GPLPV_VERSION%
james@538 15
james@524 16 CALL set_ddk_path.bat
james@819 17 CALL set_ddk_path_2K.bat
james@524 18
james@543 19 SET PV_DIR=%CD%
james@537 20
james@730 21 SET SIGNTOOL=%DDK_PATH%\bin\x86\signtool.exe
james@730 22 IF NOT EXIST %SIGNTOOL% SET SIGNTOOL=%DDK_PATH%\bin\selfsign\signtool.exe
james@730 23 SET CERT_NAME=GPLPV_Test_Cert
james@730 24
james@730 25 REM IF NOT EXIST SIGN_CONFIG.BAT GOTO DONT_SIGN
james@730 26 REM CALL SIGN_CONFIG.BAT
james@541 27
james@645 28 IF NOT EXIST gplpv.cer "%DDK_PATH%"\bin\selfsign\makecert -r -pe -ss PrivateCertStore -n "CN=GPLPV_Test_Cert" gplpv.cer
james@645 29
james@650 30 mkdir symbols\%GPLPV_VERSION%
james@650 31
james@821 32 cmd /C "%DDK_PATH_2K%\bin\setenv.bat %DDK_PATH_2K%\ chk W2K && CD /D "%PV_DIR%" && build -cZg ~xenusb ~copyconfig ~waitnopendinginstallevents && call sign.bat && call archive.bat && call wix.bat"
james@819 33
james@730 34 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 35
james@730 36 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 37
james@730 38 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 39
james@730 40 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 41
james@730 42 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 43
james@821 44 cmd /C "%DDK_PATH_2K%\bin\setenv.bat %DDK_PATH_2K%\ fre W2K && CD /D "%PV_DIR%" && build -cZg ~xenusb ~copyconfig ~waitnopendinginstallevents && call sign.bat && call wix.bat"
james@819 45
james@544 46 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 47
james@544 48 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 49
james@544 50 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 51
james@544 52 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 53
james@544 54 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 55
james@611 56 IF NOT EXIST TAG_HG GOTO DONT_TAG
james@611 57 IF EXIST BUILD*.WRN GOTO DONT_TAG
james@611 58 IF EXIST BUILD*.ERR GOTO DONT_TAG
james@611 59
james@611 60 hg tag %GPLPV_VERSION%
james@611 61
james@611 62 :DONT_TAG