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.

90 lines
2.0 KiB

  1. @echo off
  2. if "%myGrep%" == "" set myGrep=grep.exe
  3. REM
  4. REM --- Batch file to set some build flags and
  5. REM --- release points.
  6. REM
  7. REM
  8. REM --- Parse the command line
  9. REM
  10. REM
  11. REM --- Set some common build settings
  12. REM
  13. set bldRelease=Y
  14. if "%bldQuiet%" == "" set bldQuiet=Y
  15. if "%bldMakeOut%" == "" set bldMakeOut=Y
  16. if "%bldMakeDep%" == "" set bldMakeDep=Z
  17. if "%bldMark%" == "" set bldMark=Y
  18. if "%bldCheckErr%" == "" set bldCheckErr=Y
  19. if "%bldCheckWrn%" == "" set bldCheckWrn=Y
  20. if "%bldMaker%" == "" set bldMaker=Y
  21. if "%bldMaked%" == "" set bldMaked=Y
  22. if "%bldMaket%" == "" set bldMaket=Y
  23. if "%bldLogging%" == "" set bldLogging=Y
  24. if "%bldLogArchive%" == "" set bldLogArchive=N
  25. if "%bldShow%" == "" set bldShow=Y
  26. if "%tgtShow%" == "" set tgtShow=Y
  27. REM set bldComponentDoneSound=bell 50 200 300 400
  28. REM set bldComponentErrSound=bell 50 420 350 300 840 700 600
  29. REM set bldBldDoneSound=bell 110 523 659 783 1046
  30. call bt.bat
  31. if not exist \tmp md \tmp
  32. if not exist \temp md \temp
  33. cd | sed "s/^../set homedir=/" > \tmp\homedir.bat
  34. call \tmp\homedir.bat
  35. del \tmp\homedir.bat
  36. if "%bldProject%" == "" goto usage
  37. :bldProject
  38. set bldLogFile=\\elah\dist\%bldProject%\%bldProject%.log
  39. set bldClean=Y
  40. set bldMailErr=Y
  41. set bldMailWrn=N
  42. set bldMailBuilder=Y
  43. set bldMailOwner=Y
  44. set bldMakeDep=Z
  45. set bldSlmStatus=N
  46. set bldBuilder=hammer
  47. set TeamMail=oprahall
  48. set TestMail=oprahtst
  49. set DevMail=oprahdev
  50. if "%backpath%" == "" set backpath=%path%
  51. set path=%bldDrive%%bldDir%;%backpath%
  52. %bldDrive%
  53. cd %bldDir%
  54. if exist settools.bat call settools.bat
  55. rem --- Get the version # in the environment
  56. call version.bat
  57. call bldrel %bldProject%
  58. goto cleanup
  59. :usage
  60. echo.
  61. echo usage: You must invoke setrel from your project build tools directory.
  62. echo.
  63. goto cleanup
  64. :cleanup
  65. set homedir=
  66. goto exit
  67. :exit