edit_sys_tests.awk 405 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/awk -f
  2. BEGIN{
  3. while(getline < "BLOCKED") {
  4. test = $1$2$3
  5. blocked[test]
  6. }
  7. }
  8. NF && ! /^#/ {
  9. test = $2$3
  10. if($1=="splice02") {
  11. s = "./pal_loader"
  12. for (i=2; i<=NF; i++) {
  13. s = s " " $i
  14. if($i=="|") {
  15. i++
  16. s = s " ./pal_loader " $i
  17. }
  18. }
  19. print s
  20. }
  21. else if(! (test in blocked)) {
  22. s = "./pal_loader"
  23. for (i=2; i<=NF; i++) {
  24. s = s " " $i
  25. }
  26. print s
  27. }
  28. }