Source code of Windows XP (NT5)
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.

53 lines
884 B

  1. BEGIN {
  2. finished = 1;
  3. }
  4. {
  5. if ($1 == "")
  6. {
  7. }
  8. else if (substr($1, 1, 1) == "[")
  9. {
  10. if (justgotdir == 1)
  11. {
  12. print dir;
  13. }
  14. dir = substr($1, 2, length($1)-2);
  15. justgotdir = 1;
  16. }
  17. else
  18. {
  19. linetmp = "";
  20. for (i = 1; i <= NF; i++)
  21. {
  22. linetmp = linetmp" "$i;
  23. }
  24. line = substr(linetmp, 2, length(linetmp)-1);
  25. if (justgotdir == 1)
  26. {
  27. if (substr(line, 1, 2) != "@=")
  28. {
  29. print dir;
  30. }
  31. }
  32. if (finished == 1)
  33. {
  34. printf dir" ";
  35. }
  36. if (substr(line, length(line), 1) == "\\")
  37. {
  38. finished = 0;
  39. printf substr(line, 1, length(line)-1);
  40. }
  41. else
  42. {
  43. finished = 1;
  44. print line;
  45. }
  46. justgotdir = 0;
  47. }
  48. }
  49. END {
  50. if (justgotdir == 1)
  51. {
  52. print dir;
  53. }
  54. }