From 756e5c1b72297eff73dbfdad2315a3e416a54f88 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Thu, 11 Jan 2024 19:54:02 -0800 Subject: [PATCH] Initial file --- scripts/check-c-formatting.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/check-c-formatting.sh 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