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.

27 lines
728 B

  1. BEGIN {
  2. FS="\t"
  3. printf "test:\n"
  4. nmaket = "nmake TEST=ON"
  5. myclean = "$(MYCLEAN)"
  6. myroot= "$(MYROOT)"
  7. mytst = "$(MYTST)"
  8. }
  9. {
  10. if (NR > 2 && $3 != "" && $4 ~ /[Yy]/ && $0 !~ /^;/)
  11. {
  12. split ( $3, arr, "\\" )
  13. if ( arr["4"] != "" )
  14. {
  15. homeDir = arr["3"]"\\"arr["4"]
  16. if ( $5 != "" && $5 != "." && $5 != "copy" )
  17. printf "\tcd %s\n\t%s %s %s\n\tcd ..\%s\n\n", homeDir, nmaket, myclean, mytst, myroot }
  18. else
  19. {
  20. homeDir = arr["3"]
  21. if ( $5 != "" && $5 != "." && $5 != "copy" )
  22. printf "\tcd %s\n\t%s %s %s\n\tcd %s\n\n", homeDir, nmaket, myclean, mytst, myroot
  23. }
  24. }
  25. }