forked from Telodendria/Telodendria
Add an indent recipe.
This commit is contained in:
parent
aa01e78fc0
commit
ae2b853cc4
1 changed files with 10 additions and 0 deletions
10
make.sh
10
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."
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue