trim_copyright_notice_cc.awk 261 B

12345678910111213141516171819202122
  1. {
  2. if (show > 2)
  3. print;
  4. else if (show == 2 && NF > 0)
  5. {
  6. print;
  7. show = 3;
  8. }
  9. if (show == 1 && $1 == "*/")
  10. show = 2;
  11. if (!show)
  12. {
  13. if ($1 == "/**")
  14. show = 1;
  15. else if (NF > 0)
  16. {
  17. show = 3;
  18. print;
  19. }
  20. }
  21. }