lite.awk 342 B

12345678910111213141516171819202122232425
  1. # Remove code enclosed by "BEGIN FULL-RUNTIME" and "END FULL-RUNTIME" to
  2. # create the lite-only version of a test file.
  3. BEGIN {
  4. in_full_runtime = 0;
  5. }
  6. /BEGIN FULL-RUNTIME/ {
  7. in_full_runtime = 1;
  8. next;
  9. }
  10. /END FULL-RUNTIME/ {
  11. in_full_runtime = 0;
  12. next;
  13. }
  14. in_full_runtime {
  15. # Skip full runtime code path.
  16. next;
  17. }
  18. {
  19. print;
  20. }