1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-13 03:19:53 +03:00
opentx/tools/codeformat.sh
2016-11-23 16:40:47 +01:00

13 lines
264 B
Bash

#!/bin/bash
for f in `find ../src -regex '.*\.\(c\|cpp\|h\)$' -print`
do
if [[ $f != *"thirdparty"* ]]
then
dos2unix $f $f
uncrustify -c ./uncrustify.cfg --no-backup $f
./copyright.py ./copyright-header.txt $f
./include-guard.py $f
fi
done