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.

128 lines
2.7 KiB

  1. @ echo off
  2. @ REM ========================================================================
  3. @ REM Copyright (c) 1996 Microsoft Corporation
  4. @ REM
  5. @ REM Module Name:
  6. @ REM
  7. @ REM buildrc.bat
  8. @ REM
  9. @ REM Abstract:
  10. @ REM
  11. @ REM This batch file builds release candidates for the three Calais kits.
  12. @ REM
  13. @ REM Usage: buildrc <dir> <n>
  14. @ REM
  15. @ REM This builds the release candidate kits in directory <dir>\RC<n>.
  16. @ REM
  17. @ REM Author:
  18. @ REM
  19. @ REM Doug Barlow (dbarlow) 3/28/1997
  20. @ REM
  21. @ REM ========================================================================
  22. setlocal
  23. if "%1" == "" goto noDestDir
  24. if "%2" == "" goto noRcNumber
  25. @ REM
  26. @ REM Initialize the working variables.
  27. @ REM
  28. set arch=
  29. if "%PROCESSOR_ARCHITECTURE%" == "x86" set arch=i386
  30. if "%PROCESSOR_ARCHITECTURE%" == "alpha" set arch=alpha
  31. if "%PROCESSOR_ARCHITECTURE%" == "mips" set arch=mips
  32. if "%PROCESSOR_ARCHITECTURE%" == "ppc" set arch=ppc
  33. if "%arch%" == "" goto noArchitecture
  34. @ REM
  35. @ REM Initialize special pointers
  36. @ REM
  37. set Calais=%_NTROOT%\Private\ISPU\Calais
  38. set KitDir=%Calais%\Tools\kits
  39. @ REM
  40. @ REM Build the kits.
  41. @ REM
  42. pushd Base
  43. echo Building the CHECKED BASE KIT
  44. set NTDEBUG=ntsd
  45. set NTDEBUGTYPE=both
  46. call build.bat
  47. echo Building the FREE BASE KIT
  48. set NTDEBUG=retail
  49. set NTDEBUGTYPE=
  50. call build.bat
  51. popd
  52. pushd SDK
  53. echo Building the CHECKED SDK KIT
  54. set NTDEBUG=ntsd
  55. set NTDEBUGTYPE=both
  56. call build.bat
  57. echo Building the FREE SDK KIT
  58. set NTDEBUG=retail
  59. set NTDEBUGTYPE=
  60. call build.bat
  61. popd
  62. pushd DDK
  63. echo Building the CHECKED DDK KIT
  64. set NTDEBUG=ntsd
  65. set NTDEBUGTYPE=both
  66. call build.bat
  67. echo Building the FREE DDK KIT
  68. set NTDEBUG=retail
  69. set NTDEBUGTYPE=
  70. call build.bat
  71. popd
  72. @ REM
  73. @ REM Make sure the target paths exist.
  74. @ REM
  75. if not exist %1 mkdir %1
  76. if not exist %1\RC%2 mkdir %1\RC%2
  77. if not exist %1\RC%2\Base mkdir %1\RC%2\Base
  78. if not exist %1\RC%2\SDK mkdir %1\RC%2\SDK
  79. if not exist %1\RC%2\DDK mkdir %1\RC%2\DDK
  80. @ REM
  81. @ REM Copy the kits to the target directories.
  82. @ REM
  83. xcopy %KitDir%\Base\objd %1\RC%2\Base\Checked /f /i /s
  84. xcopy %KitDir%\Base\obj %1\RC%2\Base\Free /f /i /s
  85. xcopy %KitDir%\SDK\objd %1\RC%2\SDK\Checked /f /i /s
  86. xcopy %KitDir%\SDK\obj %1\RC%2\SDK\Free /f /i /s
  87. xcopy %KitDir%\DDK\objd %1\RC%2\DDK\Checked /f /i /s
  88. xcopy %KitDir%\DDK\obj %1\RC%2\DDK\Free /f /i /s
  89. goto end
  90. @ REM
  91. @ REM Error processing.
  92. @ REM
  93. :noDestDir
  94. echo ERROR: You must specify a target directory.
  95. goto end
  96. :goto noRcNumber
  97. echo ERROR: You must specify a release candidate number.
  98. goto end
  99. :noArchitecture
  100. echo ERROR: PROCESSOR_ARCHITECTURE is unset or unrecognized.
  101. goto end
  102. :end
  103. endlocal