From 5197f4db91d1ec4ee22b4fa89102d31e0a523b63 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Mon, 25 Jul 2022 15:35:31 -0400 Subject: [PATCH] Move the indent switches to .indent.pro so that indent(1) can be run on individual files outsid the make script. --- .indent.pro | 28 ++++++++++++++++++++++++++++ make.sh | 5 +---- 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 .indent.pro diff --git a/.indent.pro b/.indent.pro new file mode 100644 index 0000000..5c1d1ec --- /dev/null +++ b/.indent.pro @@ -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 + diff --git a/make.sh b/make.sh index 9c6b07b..e4010b0 100644 --- a/make.sh +++ b/make.sh @@ -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 }