run_clang-format.sh 443 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. set -e
  3. #cd libopenmpt
  4. # clang-format-13 -i *.hpp *.cpp *.h
  5. #cd ..
  6. cd examples
  7. clang-format-13 -i *.cpp *.c
  8. cd ..
  9. #cd openmpt123
  10. # clang-format-13 -i *.hpp *.cpp
  11. #cd ..
  12. cd src/mpt
  13. find . -type f -iname '*\.hpp' | xargs clang-format-13 -i
  14. cd ../..
  15. cd src/openmpt
  16. find . -type f -iname '*\.cpp' | xargs --no-run-if-empty clang-format-13 -i
  17. find . -type f -iname '*\.hpp' | xargs --no-run-if-empty clang-format-13 -i
  18. cd ../..