summaryrefslogtreecommitdiffstats
path: root/PCbuild8
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2007-07-04 02:03:10 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2007-07-04 02:03:10 (GMT)
commite81119295eceabc79ca2333ae6d32aad7bf8d877 (patch)
tree4e58183a97d07d7534c2079bd6e637f544d28947 /PCbuild8
parent152ff5f592527074072dab34e992b501a2fe33c1 (diff)
downloadcpython-e81119295eceabc79ca2333ae6d32aad7bf8d877.zip
cpython-e81119295eceabc79ca2333ae6d32aad7bf8d877.tar.gz
cpython-e81119295eceabc79ca2333ae6d32aad7bf8d877.tar.bz2
copy built files to the PCBuild directory, where tools like
distutils or external build processes can find them.
Diffstat (limited to 'PCbuild8')
-rw-r--r--PCbuild8/build.bat13
1 files changed, 12 insertions, 1 deletions
diff --git a/PCbuild8/build.bat b/PCbuild8/build.bat
index 8c61a70..ba21390 100644
--- a/PCbuild8/build.bat
+++ b/PCbuild8/build.bat
@@ -14,4 +14,15 @@ if "%1"=="-r" (set build=/rebuild) & shift & goto CheckOpts
set cmd=devenv pcbuild.sln %build% "%conf%|%platf%"
echo %cmd%
-%cmd% \ No newline at end of file
+%cmd%
+
+rem Copy whatever was built to the canonical 'PCBuild' directory.
+rem This helps extensions which use distutils etc.
+rem (Don't check if the build was successful - we expect a few failures
+rem due to missing libs)
+echo Copying built files to ..\PCBuild
+if not exist %platf%%conf%\. (echo %platf%%conf% does not exist - nothing copied & goto xit)
+if not exist ..\PCBuild\. (echo ..\PCBuild does not exist - nothing copied & goto xit)
+xcopy /q/y %platf%%conf%\* ..\PCBuild\.
+
+:xit