From 250de6201b916fcdd763c4ada57f074552e2cc54 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Fri, 17 May 2013 18:52:06 +0100 Subject: [PATCH] Add uncrustify helper scripts --- tools/code-style/uncrustify-check-style.sh | 2 ++ tools/code-style/uncrustify-fix-style.sh | 2 ++ 2 files changed, 4 insertions(+) create mode 100755 tools/code-style/uncrustify-check-style.sh create mode 100755 tools/code-style/uncrustify-fix-style.sh 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 $*