win-pvdrivers

changeset 650:cf237bbbee82

Add code to archive symbols on makedist to aid debugging of release checked version. archive will only happen if 7z.exe is in the default installed place
author James Harper <james.harper@bendigoit.com.au>
date Mon Sep 07 13:27:23 2009 +1000 (2009-09-07)
parents cbd4e4ae9527
children 8b3dae86a7f6
files archive.bat makedist.bat
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/archive.bat	Mon Sep 07 13:27:23 2009 +1000
     1.3 @@ -0,0 +1,14 @@
     1.4 +@ECHO OFF
     1.5 +
     1.6 +SET SEVENZIP="%PROGRAMFILES%\7-Zip\7z.exe"
     1.7 +IF NOT EXIST %SEVENZIP% EXIT
     1.8 +
     1.9 +IF %_BUILDARCH%==x86 (SET BUILDDIR=obj%BUILD_ALT_DIR%\i386) ELSE (SET BUILDDIR=obj%BUILD_ALT_DIR%\amd64)
    1.10 +
    1.11 +SET SYMFILES=xenpci\%BUILDDIR%\xen*.sys xenpci\%BUILDDIR%\xen*.pdb
    1.12 +SET SYMFILES=%SYMFILES% xennet\%BUILDDIR%\xen*.sys xennet\%BUILDDIR%\xen*.pdb
    1.13 +SET SYMFILES=%SYMFILES% xenvbd\%BUILDDIR%\xen*.sys xenvbd\%BUILDDIR%\xen*.pdb
    1.14 +SET SYMFILES=%SYMFILES% xenscsi\%BUILDDIR%\xen*.sys xenscsi\%BUILDDIR%\xen*.pdb
    1.15 +SET SYMFILES=%SYMFILES% xenusb\%BUILDDIR%\xen*.sys xenusb\%BUILDDIR%\xen*.pdb
    1.16 +
    1.17 +%SEVENZIP% a -y symbols_%BUILD_ALT_DIR%_%GPLPV_VERSION%.zip %SYMFILES%
    1.18 \ No newline at end of file
     2.1 --- a/makedist.bat	Mon Sep 07 13:26:25 2009 +1000
     2.2 +++ b/makedist.bat	Mon Sep 07 13:27:23 2009 +1000
     2.3 @@ -20,6 +20,8 @@ ECHO PV_DIR=%PV_DIR%
     2.4  
     2.5  IF NOT EXIST gplpv.cer "%DDK_PATH%"\bin\selfsign\makecert -r -pe -ss PrivateCertStore -n "CN=GPLPV_Test_Cert" gplpv.cer
     2.6  
     2.7 +mkdir symbols\%GPLPV_VERSION%
     2.8 +
     2.9  cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WXP && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
    2.10  
    2.11  cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
    2.12 @@ -30,15 +32,15 @@ cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_P
    2.13  
    2.14  cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre x64 WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
    2.15  
    2.16 -cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk WXP && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
    2.17 -
    2.18 -cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
    2.19 +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"
    2.20  
    2.21 -cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk x64 WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
    2.22 +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"
    2.23  
    2.24 -cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
    2.25 +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"
    2.26  
    2.27 -cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk x64 WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
    2.28 +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"
    2.29 +
    2.30 +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"
    2.31  
    2.32  IF NOT EXIST TAG_HG GOTO DONT_TAG
    2.33  IF EXIST BUILD*.WRN GOTO DONT_TAG