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.

28 lines
731 B

  1. BEGIN {
  2. FS="\t"
  3. printf "debug:\n"
  4. nmaked = "nmake DEBUG=ON"
  5. myclean = "$(MYCLEAN)"
  6. myroot= "$(MYROOT)"
  7. mydeb= "$(MYDEB)"
  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, nmaked, myclean, mydeb, myroot
  18. }
  19. else
  20. {
  21. homeDir = arr["3"]
  22. if ( $5 != "" && $5 != "." && $5 != "copy" )
  23. printf "\tcd %s\n\t%s %s %s\n\tcd %s\n\n", homeDir, nmaked, myclean, mydeb, myroot
  24. }
  25. }
  26. }