Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.4 KiB

  1. @if "%_echo%"=="" echo off
  2. @rem
  3. @rem We look in BuildMachines.txt for the machine name, branch, architecture,
  4. @rem and build type. If we find a match, then we set OFFICIAL_BUILD_MACHINE
  5. @rem to the appropriate value ("primary" or "secondary");
  6. for /f "delims=, tokens=1,2,3,4,5,6" %%i in (%RazzleToolPath%\BuildMachines.txt) do (
  7. if /I "%%i" == "%COMPUTERNAME%" (
  8. if /I "%%k" == "%_BuildBranch%" (
  9. if /I "%%l" == "%_BuildArch%" (
  10. if /I "%%m" == "%_BuildType%" (
  11. set OFFICIAL_BUILD_MACHINE=%%j
  12. set _BuildNotifyDL=%%n
  13. goto :FoundIt
  14. )
  15. )
  16. )
  17. )
  18. )
  19. @rem Didn't find the machine.
  20. @echo ERROR: "%COMPUTERNAME%" is not a valid official build machine for this
  21. @echo build type on this branch. Update %RazzleToolPath%\BuildMachines.txt
  22. @echo if you feel differently. Clearing OFFICIAL_BUILD_MACHINE variable.
  23. set OFFICIAL_BUILD_MACHINE=
  24. goto :eof
  25. :FoundIt
  26. @rem
  27. @rem Make sure the OFFICIAL_BUILD_MACHINE is upper-case for consistency
  28. @rem
  29. if /I "%OFFICIAL_BUILD_MACHINE%" == "primary" set OFFICIAL_BUILD_MACHINE=PRIMARY&goto :eof
  30. if /I "%OFFICIAL_BUILD_MACHINE%" == "secondary" set OFFICIAL_BUILD_MACHINE=SECONDARY&goto :eof
  31. @echo ERROR: "%OFFICIAL_BUILD_MACHINE%" is an invalid value. Please correct buildmachines.txt.
  32. set OFFICIAL_BUILD_MACHINE=
  33. goto :eof