]> granicus.if.org Git - python/commitdiff
copy built files to the PCBuild directory, where tools like
authorMark Hammond <mhammond@skippinet.com.au>
Wed, 4 Jul 2007 02:03:10 +0000 (02:03 +0000)
committerMark Hammond <mhammond@skippinet.com.au>
Wed, 4 Jul 2007 02:03:10 +0000 (02:03 +0000)
distutils or external build processes can find them.

PCbuild8/build.bat

index 8c61a70313309f43f7e418820a70663316474b93..ba21390ac95986c3d7883a969dcb333c360b8e12 100644 (file)
@@ -14,4 +14,15 @@ if "%1"=="-r" (set build=/rebuild)    & shift & goto CheckOpts
 \r
 set cmd=devenv pcbuild.sln %build% "%conf%|%platf%"\r
 echo %cmd%\r
-%cmd%
\ No newline at end of file
+%cmd%\r
+\r
+rem Copy whatever was built to the canonical 'PCBuild' directory.\r
+rem This helps extensions which use distutils etc.\r
+rem (Don't check if the build was successful - we expect a few failures\r
+rem due to missing libs)\r
+echo Copying built files to ..\PCBuild\r
+if not exist %platf%%conf%\. (echo %platf%%conf% does not exist - nothing copied & goto xit)\r
+if not exist ..\PCBuild\. (echo ..\PCBuild does not exist - nothing copied & goto xit)\r
+xcopy /q/y %platf%%conf%\* ..\PCBuild\.\r
+\r
+:xit\r