diff --git a/radio/util/codeformat.sh b/radio/util/codeformat.sh new file mode 100755 index 000000000..7fb612177 --- /dev/null +++ b/radio/util/codeformat.sh @@ -0,0 +1,13 @@ +#!/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 +