Move the indent switches to .indent.pro so that indent(1) can be run on

individual files outsid the make script.
This commit is contained in:
Jordan Bancino 2022-07-25 15:35:31 -04:00
parent 3437c5db2c
commit 5197f4db91
2 changed files with 29 additions and 4 deletions

28
.indent.pro vendored Normal file
View file

@ -0,0 +1,28 @@
-bad
-bap
-bbb
-nbc
-bl
-c36
-cd36
-ncdb
-nce
-ci8
-cli1
-d0
-di1
-ndj
-ei
-fc1
-i4
-ip
-l72
-lc72
-lp
-npcs
-psl
-sc
-nsob
-nut
-nv

View file

@ -76,10 +76,7 @@ recipe_clean() {
recipe_format() {
find src -name '*.c' -or -name '*.h' | 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"
indent "$src"
done
}