From ae2b853cc4f34e57e35a5f0c2be42b6e0d69340c Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Mon, 25 Jul 2022 15:18:25 -0400 Subject: [PATCH] Add an indent recipe. --- make.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/make.sh b/make.sh index 17d32c9..8d2f5fc 100644 --- a/make.sh +++ b/make.sh @@ -73,6 +73,16 @@ recipe_clean() { rm -rv build } +recipe_format() { + find src -name '*.c' | while IFS= read -r src; do + echo "indent $src" + indent -bad -bap -bbb -nbc -bl -c36 -cd36 -ncdb -nce \ + -ci8 -cli1 -d0 -di1 -ndj -ei -fc1 -i4 -ip -l72 \ + -lc72 -lp -npro -npcs -psl -sc -nsob -nut -nv \ + "$src" + done +} + recipe_test() { echo "Unit tests are not implemented yet." }