diff --git a/scripts/format.sh b/scripts/format.sh new file mode 100755 index 0000000..d1391ce --- /dev/null +++ b/scripts/format.sh @@ -0,0 +1,6 @@ +#!/bin/sh +set -eu +cd "$(dirname "$0")"/.. +echo "Entering directory '$PWD'" +set -x +find . -name "[^.]*.[ch]" | sort | xargs clang-format -verbose -i