style: use astyle instead of indent

This commit is contained in:
Harald Hoyer 2021-03-15 12:12:31 +01:00 committed by Harald Hoyer
parent 0850cf532d
commit 5667978e7b
3 changed files with 11 additions and 2 deletions

9
.astylerc Normal file
View File

@ -0,0 +1,9 @@
lineend=linux
style=linux
indent=spaces=8
convert-tabs
min-conditional-indent=0
max-instatement-indent=120
align-pointer=name
max-code-length=120

View File

@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: install tools - name: install tools
run: sudo apt-get install indent run: sudo apt-get install astyle
- name: indent - name: indent
run: make indent-c run: make indent-c

View File

@ -94,7 +94,7 @@ dracut-util: util/util
.PHONY: indent-c .PHONY: indent-c
indent-c: indent-c:
indent -i8 -nut -br -linux -l120 $(wildcard *.[ch] */*.[ch]) astyle -n --quiet --options=.astylerc $(wildcard *.[ch] */*.[ch])
.PHONY: indent .PHONY: indent
indent: indent-c indent: indent-c