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.

69 lines
1.5 KiB

  1. set warn=N
  2. set bldWarn=
  3. if "%1%" == "" goto end
  4. if not exist %1% goto end
  5. if exist wrn.out del wrn.out
  6. :chkWrn1
  7. %myGrep% -y " warning " %1%
  8. if errorlevel 1 goto chkWrn1X
  9. goto gotWrn
  10. :chkWrn1X
  11. :chkWrn2
  12. %myGrep% -y "^Warning " %1%
  13. if errorlevel 1 goto chkWrn2X
  14. goto gotWrn
  15. :chkWrn2X
  16. goto end
  17. :gotWrn
  18. set warn=Y
  19. set bldWarn=
  20. echo %tgtFullname% (%tgtDesc%) >> wrn.out
  21. echo. >> wrn.out
  22. echo ------------------- >> wrn.out
  23. echo Summary of warnings >> wrn.out
  24. echo ------------------- >> wrn.out
  25. %myGrep% -y " warning " %1% >> wrn.out
  26. echo. >> wrn.out
  27. echo ------------------ >> wrn.out
  28. echo Detail of warnings >> wrn.out
  29. echo ------------------ >> wrn.out
  30. cat %1% >> wrn.out
  31. if "%bldMailBuilder%" == "Y" goto builder
  32. if "%bldMailBuilder%" == "y" goto builder
  33. goto builderx
  34. :builder
  35. set name=anthonyr
  36. if not "%bldBuilder%" == "" set name=%bldBuilder%
  37. set subject=%bldTgtEnv% warnings: %tgtComponent% (%tgtOwner%)
  38. set file=wrn.out
  39. call email.bat
  40. :builderx
  41. if "%bldMailOwner%" == "Y" goto owner
  42. if "%bldMailOwner%" == "y" goto owner
  43. goto ownerx
  44. :owner
  45. if "%tgtOwner%" == "" goto ownerx
  46. set name=%tgtOwner%
  47. set subject=%bldTgtEnv% warnings: %tgtComponent% (%tgtOwner%)
  48. set file=wrn.out
  49. call email.bat
  50. :ownerx
  51. if "%warn%" == "Y" goto end
  52. if exist wrn.out del wrn.out
  53. :end
  54. set file=