Add an indent recipe.

This commit is contained in:
Jordan Bancino 2022-07-25 15:18:25 -04:00
parent aa01e78fc0
commit ae2b853cc4

10
make.sh
View file

@ -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."
}