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.

84 lines
1.6 KiB

  1. @echo off
  2. if "%1%" == "" goto usage
  3. set email=N
  4. if exist warning.out del warning.out
  5. :loop
  6. if "%1%" == "" goto bottom
  7. if "%1%" == "email" set email=Y
  8. if "%1%" == "email" goto loopX
  9. set TgtEnv=%1%
  10. echo set TgtDesc=%%%TgtEnv%Desc%% > wrntmp.bat
  11. call wrntmp.bat
  12. del wrntmp.bat
  13. if not exist %TgtEnv%???.dat goto noDat
  14. sed -f %TgtEnv%d.sed warning.awk > d.awk
  15. sed -f %TgtEnv%r.sed warning.awk > r.awk
  16. sed -f %TgtEnv%t.sed warning.awk > t.awk
  17. echo @echo off > tmp%TgtEnv%.bat
  18. awk -f d.awk %TgtEnv%d.dat >> tmp%TgtEnv%.bat
  19. awk -f r.awk %TgtEnv%r.dat >> tmp%TgtEnv%.bat
  20. awk -f t.awk %TgtEnv%t.dat >> tmp%TgtEnv%.bat
  21. del d.awk
  22. del r.awk
  23. del t.awk
  24. call tmp%TgtEnv%.bat
  25. cd \strider\toolsbld
  26. del tmp%TgtEnv%.bat
  27. if exist \tmp\warning.out goto wrn
  28. goto wrnX
  29. :wrn
  30. echo The following %TgtEnv% components compiled with warnings:
  31. echo.
  32. type \tmp\warning.out
  33. echo.
  34. echo The following %TgtEnv% components compiled with warnings: >> warning.out
  35. echo. >> warning.out
  36. type \tmp\warning.out >> warning.out
  37. echo. >> warning.out
  38. :wrnX
  39. :loopX
  40. shift
  41. goto loop
  42. :noDat
  43. echo.
  44. echo ERROR: No data file found for %TgtEnv%
  45. goto usage
  46. :usage
  47. echo.
  48. echo usage: wrn Target
  49. echo.
  50. echo Examples:
  51. echo.
  52. echo wrn %TgtEnv%
  53. echo wrn ifs
  54. echo wrn ids
  55. echo.
  56. goto exit
  57. :bottom
  58. if "%email%" == "N" goto exit
  59. set file=warning.out
  60. set name=anthonyr
  61. set subject=Build warnings
  62. call email
  63. :exit
  64. set email=
  65. set TgtEnv=
  66. set TgtDesc=