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.

81 lines
1.8 KiB

  1. BEGIN {
  2. FS="\t"
  3. }
  4. {
  5. if (NR > 2 && $3 != "" && $4 ~ /[Yy]/)
  6. {
  7. printIt = 0
  8. n = split ($2,a,".")
  9. if (n>1)
  10. {
  11. printIt = 1
  12. exename = a[1]
  13. exetype = a[2]
  14. }
  15. if (printIt == 1)
  16. {
  17. homeDir = ""
  18. nmakeTarget = ""
  19. nmakeFlag = ""
  20. if ($11 == "Y" || $11 == "y")
  21. cleanFlag = "delObjDir"
  22. else
  23. cleanFlag = "."
  24. objDir = ""
  25. owner = $1
  26. dependDirs = ""
  27. makeDepFlag = "Z"
  28. desc = "Msiphone Component"
  29. if ($3 ~/^.*\\/)
  30. {
  31. homeDir = "%bldHomeDir%\\" $3
  32. dependDirs = "%bldHomeDir%\\common"
  33. }
  34. # $5 & $6 for retail
  35. # $7 & $8 for debug
  36. # $9 & $10 for test
  37. nmakeTarget = $7
  38. objDir = $8
  39. if (nmakeTarget == "")
  40. {
  41. if (objDir == "copy") # must be a INF, INI, HLP, etc
  42. {
  43. nmakeTarget = "."
  44. objDir = "."
  45. cleanFlag = "."
  46. }
  47. else if (objDir == "")
  48. {
  49. nmakeTarget = "."
  50. objDir = "."
  51. cleanFlag = "."
  52. }
  53. else if (objDir == ".") # must be a built item
  54. cleanFlag = "."
  55. else
  56. nmakeTarget = "."
  57. }
  58. else if (nmakeTarget == ".") # must be a SLM'ed item
  59. {
  60. nmakeTarget = "."
  61. cleanFlag = "."
  62. }
  63. printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n",\
  64. homeDir,exename,exetype,nmakeTarget,nmakeFlag, \
  65. cleanFlag,objDir,owner,dependDirs,makeDepFlag,desc
  66. }
  67. }
  68. }