Guido van Rossum | 360e4b8 | 2007-05-14 22:51:27 +0000 | [diff] [blame] | 1 | @echo off
|
| 2 | rem A batch program to build or rebuild a particular configuration.
|
| 3 | rem just for convenience.
|
| 4 |
|
| 5 | setlocal
|
| 6 | set platf=Win32
|
| 7 | set conf=Release
|
| 8 | set build=/build
|
| 9 |
|
| 10 | :CheckOpts
|
| 11 | if "%1"=="-c" (set conf=%2) & shift & shift & goto CheckOpts
|
| 12 | if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts
|
| 13 | if "%1"=="-r" (set build=/rebuild) & shift & goto CheckOpts
|
| 14 |
|
| 15 | set cmd=devenv pcbuild.sln %build% "%conf%|%platf%"
|
| 16 | echo %cmd%
|
Guido van Rossum | 992d4a3 | 2007-07-11 13:09:30 +0000 | [diff] [blame] | 17 | %cmd%
|
| 18 |
|
| 19 | rem Copy whatever was built to the canonical 'PCBuild' directory.
|
| 20 | rem This helps extensions which use distutils etc.
|
| 21 | rem (Don't check if the build was successful - we expect a few failures
|
| 22 | rem due to missing libs)
|
| 23 | echo Copying built files to ..\PCBuild
|
| 24 | if not exist %platf%%conf%\. (echo %platf%%conf% does not exist - nothing copied & goto xit)
|
| 25 | if not exist ..\PCBuild\. (echo ..\PCBuild does not exist - nothing copied & goto xit)
|
| 26 | xcopy /q/y %platf%%conf%\* ..\PCBuild\.
|
| 27 |
|
| 28 | :xit
|