Skip to content

Commit

Permalink
Merge pull request #600 from zooba/test-targets
Browse files Browse the repository at this point in the history
Adds script to deploy test targets.
  • Loading branch information
zooba committed Jul 15, 2015
2 parents af6bf4e + 6aba727 commit e1289e9
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Python/Prerequisites/deploy_test_targets.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@setlocal
@echo off
rem
rem The test targets files redirect projects to use the targets deployed
rem to the Experimental hive. By installing these targets, you can test
rem modifications easily without having to manually redeploy files to
rem your MSBuild directory.
rem
rem This script should be run as an administrator.
rem

echo This script should be run as an administrator.

set D=%~dp0

call :docopy "%ProgramFiles(x86)%\MSBuild\Microsoft\VisualStudio\v14.0"
call :docopy "%ProgramFiles(x86)%\MSBuild\Microsoft\VisualStudio\v12.0"

pause
exit /B 0

:docopy

set TARGET=%~1\Python Tools\

if not exist "%~1" exit /B 0

pushd "%D%..\Product\BuildTasks\TestTargets"
echo.
echo Copying:
echo from %CD%
echo to %TARGET%
if not exist "%TARGET%" mkdir "%TARGET%"
copy /Y "*.targets" "%TARGET%"
popd

exit /B 0

0 comments on commit e1289e9

Please sign in to comment.