aboutsummaryrefslogtreecommitdiff
path: root/format.sh
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2022-08-02 01:20:12 +0200
committerbozo.kopic <bozo@kopic.xyz>2022-09-25 02:40:23 +0200
commit288727f09a1b3458c268497d111349e608c3f9fa (patch)
treed62565249fa3c7127856c65405752572fc41aca9 /format.sh
Diffstat (limited to 'format.sh')
-rwxr-xr-xformat.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/format.sh b/format.sh
new file mode 100755
index 0000000..82ed3f5
--- /dev/null
+++ b/format.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname -- "$0")
+
+SRC="$(find src_c -name '*.c' -o -name '*.h') $(find test_c -name '*.c')"
+
+clang-format -style=file -i $SRC