diff --git a/tools/code-style/uncrustify-check-style.sh b/tools/code-style/uncrustify-check-style.sh new file mode 100755 index 000000000..fffebb338 --- /dev/null +++ b/tools/code-style/uncrustify-check-style.sh @@ -0,0 +1,2 @@ +#!/bin/sh +uncrustify -q -c `dirname $0`/uncrustify.cfg -f $1 | diff -u $1 --to-file=/dev/stdin diff --git a/tools/code-style/uncrustify-fix-style.sh b/tools/code-style/uncrustify-fix-style.sh new file mode 100755 index 000000000..388dfeb17 --- /dev/null +++ b/tools/code-style/uncrustify-fix-style.sh @@ -0,0 +1,2 @@ +#!/bin/sh +uncrustify --no-backup --replace -c `dirname $0`/uncrustify.cfg $*