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