Source code of Windows XP (NT5)
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.

91 lines
2.4 KiB

  1. REM @ECHO off
  2. if defined _echo echo on
  3. if defined verbose echo on
  4. SETLOCAL ENABLEDELAYEDEXPANSION
  5. REM raise the remote if not a tsclient
  6. call %computername%.ini.cmd
  7. if not defined default_temp set default_temp=c:\temp
  8. if not defined __NTDRIVE set __NTDRIVE=d:
  9. set platform=
  10. set frechk=
  11. :Start
  12. call :Win64 %PROCESSOR_ARCHITECTURE%
  13. call :Free free
  14. call :RemoteCreator ntm MainRelease %PROCESSOR_ARCHITECTURE%
  15. call :RemoteCreator ntr IntlRelease %PROCESSOR_ARCHITECTURE%
  16. call :RemoteCreator xpclient XPClientRelease %PROCESSOR_ARCHITECTURE%
  17. for %%a in (%ntroots%) do (
  18. for %%b in (%platforms%) do (
  19. call :Win64 %%b
  20. for %%c in (%frechks%) do (
  21. call :Free %%c
  22. for %%d in (%consoles%) do (
  23. call :RemoteCreator %%a %%a_%%b_%%c_%%d %%b %%c
  24. )
  25. )
  26. )
  27. )
  28. goto end
  29. :RemoteCreator
  30. set consoleexist=
  31. set __NTROOT=%1
  32. set __ConsoleName=%2
  33. set __Platform=%3
  34. set __PerlPath=%__NTDRIVE%\%__NTROOT%\tools\%PROCESSOR_ARCHITECTURE%\perl\bin\perl.exe
  35. set __RemotePath=%__NTDRIVE%\%__NTROOT%\tools\%PROCESSOR_ARCHITECTURE%\remote.exe
  36. call :CheckConsole %__PerlPath% %__ConsoleName%
  37. if not defined consoleexist (
  38. if /i "%tmp%"=="%default_temp%" (
  39. REM start /I /min %__RemotePath% /s "cmd /k %__NTDRIVE%\%__NTROOT%\tools\razzle.cmd !platform! !frechk! binaries_dir=d:\%__NTROOT%.binaries postbld_dir=d:\%__NTROOT%.relbins temp=d:\%__NTROOT%.temp.%__Platform%fre no_title ^&^& title %__ConsoleName% - Remote /c %computername% %__ConsoleName% ^&^& cd /d d:\%__NTROOT%\tools\postbuildscripts" %__ConsoleName% /V /F lyellow /B cyan
  40. start /I /min %__RemotePath% /s "cmd /k %__NTDRIVE%\%__NTROOT%\tools\razzle.cmd !platform! !frechk! binaries_dir=d:\%__NTROOT%.binaries postbld_dir=d:\%__NTROOT%.relbins no_title ^&^& title %__ConsoleName% - Remote /c %computername% %__ConsoleName% ^&^& cd /d d:\%__NTROOT%\tools\postbuildscripts" %__ConsoleName% /V /F lyellow /B cyan
  41. ) else (
  42. start /I /min %__RemotePath% /c %computername% %__ConsoleName% /F lyellow /B cyan
  43. sleep 10
  44. )
  45. )
  46. goto :EOF
  47. :Win64
  48. if /i "%1"=="ia64" (
  49. set platform=Win64
  50. ) else if /i "%1"=="amd64" (
  51. set platfrom=Win64
  52. ) else (
  53. set platform=
  54. )
  55. goto :EOF
  56. :Free
  57. if /i "%1"=="fre" (
  58. set frechk=free
  59. ) else (
  60. set frechk=
  61. )
  62. goto :EOF
  63. :CheckConsole
  64. set PERL=%1
  65. set ConsoleName=%2
  66. %perl% -e "map({/$ARGV[0]/?exit(1):()} `tlist`)" %ConsoleName%
  67. if errorlevel 1 (
  68. set consoleexist=1
  69. ) else (
  70. set consoleexist=
  71. )
  72. goto :EOF
  73. :end
  74. ENDLOCAL