forked from lda/telodendria
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:
parent
3437c5db2c
commit
5197f4db91
2 changed files with 29 additions and 4 deletions
28
.indent.pro
vendored
Normal file
28
.indent.pro
vendored
Normal 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
|
||||||
|
|
5
make.sh
5
make.sh
|
@ -76,10 +76,7 @@ recipe_clean() {
|
||||||
recipe_format() {
|
recipe_format() {
|
||||||
find src -name '*.c' -or -name '*.h' | while IFS= read -r src; do
|
find src -name '*.c' -or -name '*.h' | while IFS= read -r src; do
|
||||||
echo "indent $src"
|
echo "indent $src"
|
||||||
indent -bad -bap -bbb -nbc -bl -c36 -cd36 -ncdb -nce \
|
indent "$src"
|
||||||
-ci8 -cli1 -d0 -di1 -ndj -ei -fc1 -i4 -ip -l72 \
|
|
||||||
-lc72 -lp -npro -npcs -psl -sc -nsob -nut -nv \
|
|
||||||
"$src"
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue