extract_log.awk 822 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. BEGIN {
  2. do_print = 0
  3. }
  4. /making Makefiles in / {
  5. pos = match($NF, PATTERN)
  6. if (pos == 1) {
  7. do_print = 1
  8. print
  9. next
  10. }
  11. else {
  12. do_print = 0
  13. next
  14. }
  15. }
  16. /cleaning in / {
  17. pos = match($NF, PATTERN)
  18. if (pos == 1) {
  19. do_print = 1
  20. print
  21. next
  22. }
  23. else {
  24. do_print = 0
  25. next
  26. }
  27. }
  28. /including in / {
  29. pos = match($NF, PATTERN)
  30. if (pos == 1) {
  31. do_print = 1
  32. print
  33. next
  34. }
  35. else {
  36. do_print = 0
  37. next
  38. }
  39. }
  40. /depending in / {
  41. pos = match($NF, PATTERN)
  42. if (pos == 1) {
  43. do_print = 1
  44. print
  45. next
  46. }
  47. else {
  48. do_print = 0
  49. next
  50. }
  51. }
  52. /making All in / {
  53. pos = match($NF, PATTERN)
  54. if (pos == 1) {
  55. do_print = 1
  56. print
  57. next
  58. }
  59. else {
  60. do_print = 0
  61. next
  62. }
  63. }
  64. /.*/ {
  65. if (do_print) print
  66. }