1 %SystemDrive%\cygwin\bin\which.exe perl
2 if errorlevel 1 set PATH=%SystemDrive%\cygwin\bin;%PATH%
4 if exist "%CONFIGURATIONBUILDDIR%\buildfailed" perl -wnle "if (/XX%PROJECTNAME%XX/) { print } else { exit 1 }" "%CONFIGURATIONBUILDDIR%\buildfailed"
6 echo XX%PROJECTNAME%XX > "%CONFIGURATIONBUILDDIR%\buildfailed"