starpu_check_braces.sh 433 B

12345678910111213141516171819
  1. #!/bin/sh
  2. for d in tools src tests examples
  3. do
  4. for ext in c h cl cu
  5. do
  6. grep -rsn "{" $d |grep ".${ext}:" | grep -v "}" | grep -v ".${ext}:[0-9]*:[[:space:]]*{$" > /tmp/braces
  7. if test -s /tmp/braces
  8. then
  9. less /tmp/braces
  10. fi
  11. grep -rsn "}" $d |grep ".${ext}:" | grep -v "{" | grep -v "};" | grep -v ".${ext}:[0-9]*:[[:space:]]*};*$" > /tmp/braces
  12. if test -s /tmp/braces
  13. then
  14. less /tmp/braces
  15. fi
  16. done
  17. done