[companion] Adjust GVAR not possible in global functions (fix #5425)
[opentx.git] / tools / codeformat.sh
blob67b6bf0c9298c4228323f3fac9622595e4aee9a5
1 #!/bin/bash
3 for f in `find ../src -regex '.*\.\(c\|cpp\|h\)$' -print`
4 do
5 if [[ $f != *"thirdparty"* ]]
6 then
7 dos2unix $f $f
8 uncrustify -c ./uncrustify.cfg --no-backup $f
9 ./copyright.py ./copyright-header.txt $f
10 ./include-guard.py $f
12 done