win-pvdrivers

view makedist.bat @ 1066:24fae56a87bf

Fix build errors
author James Harper <james.harper@bendigoit.com.au>
date Tue Oct 29 19:38:31 2013 +1100 (2013-10-29)
parents 87cdc5bf8ef6
children 04fc4aca982c
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
24 SET CERT_FILENAME=
25 SET CERT_PASSWORD=
26 SET CERT_CROSS_CERT_FILENAME=
27 SET CERT_PUBLIC_FILENAME=
28 IF NOT EXIST SIGN_CONFIG.BAT GOTO DONT_SIGN
29 CALL SIGN_CONFIG.BAT
30 SET CERT_CROSS_CERT_FLAG=
31 SET CERT_PASSWORD_FLAG=
32 IF DEFINED CERT_CROSS_CERT_FILENAME SET CERT_CROSS_CERT_FLAG=/ac %CERT_CROSS_CERT_FILENAME%
33 IF DEFINED CERT_PASSWORD SET CERT_PASSWORD_FLAG=-p %CERT_PASSWORD%
34 IF EXIST %CERT_FILENAME% GOTO :DONT_SIGN
35 "%DDK_PATH%"\bin\x86\makecert -r -pe -ss PrivateCertStore -n "CN=GPLPV Test Cert" %CERT_PUBLIC_FILENAME%
36 certutil -exportpfx -user -privatekey %CERT_PASSWORD_FLAG% PrivateCertStore "GPLPV Test Cert" "%CERT_FILENAME%
37 :DONT_SIGN
39 mkdir symbols\%GPLPV_VERSION%
41 cmd /C "%DDK_PATH_2K%\bin\setenv.bat %DDK_PATH_2K%\ chk W2K && CD /D "%PV_DIR%" && build -cZg ~xenvbd_storport ~xenusb ~copyconfig ~waitnopendinginstallevents && call sign.bat && call archive.bat && call wix.bat"
43 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk WXP && CD /D "%PV_DIR%" && build -cZg ~xenvbd_storport && call sign.bat && call archive.bat && call wix.bat"
45 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"
47 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"
49 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"
51 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"
53 cmd /C "%DDK_PATH_2K%\bin\setenv.bat %DDK_PATH_2K%\ fre W2K && CD /D "%PV_DIR%" && build -cZg ~xenvbd_storport ~xenusb ~copyconfig ~waitnopendinginstallevents && call sign.bat && call wix.bat"
55 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WXP && CD /D "%PV_DIR%" && build -cZg ~xenvbd_storport && call sign.bat && call wix.bat"
57 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
59 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre x64 WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
61 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
63 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre x64 WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
65 hg status | findstr "^M" && GOTO DONT_TAG
66 IF NOT EXIST TAG_HG GOTO DONT_TAG
67 IF EXIST BUILD*.WRN GOTO DONT_TAG
68 IF EXIST BUILD*.ERR GOTO DONT_TAG
70 hg tag %GPLPV_VERSION%
72 :DONT_TAG