winamp/Src/external_dependencies/openmpt-trunk/build/svn/run_clang-format.sh

24 lines
443 B
Bash
Raw Normal View History

2024-09-24 12:54:57 +00:00
#!/bin/bash
set -e
#cd libopenmpt
# clang-format-13 -i *.hpp *.cpp *.h
#cd ..
cd examples
clang-format-13 -i *.cpp *.c
cd ..
#cd openmpt123
# clang-format-13 -i *.hpp *.cpp
#cd ..
cd src/mpt
find . -type f -iname '*\.hpp' | xargs clang-format-13 -i
cd ../..
cd src/openmpt
find . -type f -iname '*\.cpp' | xargs --no-run-if-empty clang-format-13 -i
find . -type f -iname '*\.hpp' | xargs --no-run-if-empty clang-format-13 -i
cd ../..