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.

106 lines
2.6 KiB

  1. @echo off
  2. setlocal enableextensions
  3. set VERSION=%1
  4. if '%VERSION%' EQU '' goto Usage
  5. set PERLCMD=C:\Perl\Bin\Perl.exe
  6. set ROOTDIR=E:\EaBuild.Raptor
  7. set ARCHIVEDIR=E:\Raptor
  8. set LOG=%ROOTDIR%\IncrementalBuild.log
  9. set stars=********************************************************************************
  10. echo %stars% > %LOG% 2>&1
  11. echo Build Process started at: >> %LOG% 2>&1
  12. date /t >> %LOG% 2>&1
  13. time /t >> %LOG% 2>&1
  14. echo %stars% >> %LOG% 2>&1
  15. echo Changing drive to e: >> %LOG% 2>&1
  16. e: >> %LOG% 2>&1
  17. echo Changing directory to \BuildTools >> %LOG% 2>&1
  18. cd \BuildTools >> %LOG% 2>&1
  19. if /I '%VERSION%' EQU '/AUTO' goto GetBuildNumber
  20. goto StartBuild
  21. :GetBuildNumber
  22. echo Getting last build directory... >> %LOG% 2>&1
  23. GetLastBuildDir.pl %ARCHIVEDIR% >> %LOG% 2>&1
  24. echo Setting next build number... >> %LOG% 2>&1
  25. set /A VERSION=%ERRORLEVEL% + 1
  26. echo Set build number to %VERSION%. >> %LOG% 2>&1
  27. :StartBuild
  28. echo Deleting T: >> %LOG% 2>&1
  29. subst t: /d >> %LOG% 2>&1
  30. echo Mapping T: to %ROOTDIR% >> %LOG% 2>&1
  31. subst t: %ROOTDIR% >> %LOG% 2>&1
  32. if ERRORLEVEL 0 goto Build
  33. goto Finish
  34. :Build
  35. echo %stars% >> %LOG% 2>&1
  36. echo Building projects...
  37. echo Building projects... >> %LOG% 2>&1
  38. %PERLCMD% BuildProjects.pl -dT: -fRaptorProjects.ini -pIntel >> %LOG% 2>&1
  39. echo %stars% >> %LOG% 2>&1
  40. echo Building Help...
  41. echo Building Help... >> %LOG% 2>&1
  42. Call RaptorBuildHelp.cmd \EaBuild.Raptor %ROOTDIR%\BuildHelp.log >> %LOG% 2>&1
  43. echo %stars% >> %LOG% 2>&1
  44. echo Checking projects...
  45. echo Checking projects... >> %LOG% 2>&1
  46. %PERLCMD% CheckProjects.pl -dT: -fRaptorProjects.ini -pIntel >> %LOG% 2>&1
  47. if ERRORLEVEL 1 goto Archive
  48. echo %stars% >> %LOG% 2>&1
  49. echo Deleting temporary files...
  50. echo Deleting temporary files... >> %LOG% 2>&1
  51. Call DeleteTempFiles.cmd T: >> %LOG% 2>&1
  52. echo %stars% >> %LOG% 2>&1
  53. echo Creating installation...
  54. echo Creating installation... >> %LOG% 2>&1
  55. Call RaptorCreateInstall.cmd 6.0 >> %LOG% 2>&1
  56. :Post
  57. if %VERSION% == 0 goto Finish
  58. if %VERSION% LSS 10 set VERSION=0%VERSION%
  59. if not exist %ROOTDIR%\Bin\IntelRelease\ADMigration.msi goto Archive
  60. echo %stars% >> %LOG% 2>&1
  61. echo Posting build...
  62. echo Posting build... >> %LOG% 2>&1
  63. Call RaptorPostBuild.cmd %VERSION% >> %LOG% 2>&1
  64. :Archive
  65. echo %stars% >> %LOG% 2>&1
  66. echo Archiving build...
  67. echo Archiving build... >> %LOG% 2>&1
  68. Call RaptorArchiveBuild.cmd %ARCHIVEDIR%\Build%VERSION% >> %LOG% 2>&1
  69. :Finish
  70. echo %stars% >> %LOG% 2>&1
  71. echo Build Process ended at: >> %LOG% 2>&1
  72. date /t >> %LOG% 2>&1
  73. time /t >> %LOG% 2>&1
  74. echo %stars% >> %LOG% 2>&1
  75. goto End
  76. :Usage
  77. echo Usage: "RaptorIncrementalBuild.cmd <Build Number>"
  78. :End
  79. endlocal