From 753cb4f01c95d73c7a4313398c84dbf77f1b7947 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sat, 1 Aug 2015 20:17:30 +0200 Subject: [PATCH] #2106 - Script which will unify line endings (and code formatting) --- radio/util/codeformat.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 radio/util/codeformat.sh 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 +