win-pvdrivers

view makedist.bat @ 819:d538e0141114

Add Windows 2000 to the build scripts and installer
author James Harper <james.harper@bendigoit.com.au>
date Sun Oct 10 10:35:01 2010 +1100 (2010-10-10)
parents fc6e317ad8c8
children 9c0c4210b778
line source
1 @echo off
2 IF NOT EXIST set_ddk_path.bat ECHO >set_ddk_path.bat SET DDK_PATH=C:\WinDDK\7600.16385.0
3 IF NOT EXIST set_ddk_path_2k.bat ECHO >set_ddk_path_2k.bat SET DDK_PATH_2K=C:\WinDDK\6001.18002
5 SET VERSION=0.11.0
6 SET BUILD_NUMBER=0
7 IF EXIST build_number.bat CALL build_number.bat
9 SET GPLPV_VERSION=%VERSION%.%BUILD_NUMBER%
11 SET /A NEW_BUILD_NUMBER=%BUILD_NUMBER%+1
12 ECHO >build_number.bat SET BUILD_NUMBER=%NEW_BUILD_NUMBER%
14 ECHO BUILDING %GPLPV_VERSION%
16 CALL set_ddk_path.bat
17 CALL set_ddk_path_2K.bat
19 SET PV_DIR=%CD%
21 SET SIGNTOOL=%DDK_PATH%\bin\x86\signtool.exe
22 IF NOT EXIST %SIGNTOOL% SET SIGNTOOL=%DDK_PATH%\bin\selfsign\signtool.exe
23 SET CERT_NAME=GPLPV_Test_Cert
25 REM IF NOT EXIST SIGN_CONFIG.BAT GOTO DONT_SIGN
26 REM CALL SIGN_CONFIG.BAT
28 IF NOT EXIST gplpv.cer "%DDK_PATH%"\bin\selfsign\makecert -r -pe -ss PrivateCertStore -n "CN=GPLPV_Test_Cert" gplpv.cer
30 mkdir symbols\%GPLPV_VERSION%
32 cmd /C "%DDK_PATH_2K%\bin\setenv.bat %DDK_PATH_2K%\ chk W2K && CD /D "%PV_DIR%" && build -cZg ~xennet ~copyconfig ~xenusb ~waitnopendinginstallevents && call sign.bat && call archive.bat && call wix.bat"
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"
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"
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"
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"
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"
44 cmd /C "%DDK_PATH_2K%\bin\setenv.bat %DDK_PATH_2K%\ fre W2K && CD /D "%PV_DIR%" && build -cZg ~xennet ~copyconfig ~xenusb ~waitnopendinginstallevents && call sign.bat && call wix.bat"
46 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WXP && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
48 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
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"
52 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
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"
56 IF NOT EXIST TAG_HG GOTO DONT_TAG
57 IF EXIST BUILD*.WRN GOTO DONT_TAG
58 IF EXIST BUILD*.ERR GOTO DONT_TAG
60 hg tag %GPLPV_VERSION%
62 :DONT_TAG