diff --git a/scripts/check-c-formatting.sh b/scripts/check-c-formatting.sh new file mode 100755 index 00000000..6a612a4e --- /dev/null +++ b/scripts/check-c-formatting.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +FORMAT_CMD="indent -linux -l80 -i2 -nut" +echo $1 + +$FORMAT_CMD $1 -o $1.format-test + +diff $1 $1.format-test > /dev/null +#ret=$? +# +#if [[ $ret -eq 0 ]]; then +# echo "passed." +#else +# echo "failed." +#fi