2023-06-25 22:26:36 +00:00
|
|
|
#!/usr/bin/env sh
|
2019-03-23 17:50:50 +00:00
|
|
|
|
|
|
|
# Format all code with astyle
|
|
|
|
|
|
|
|
STYLEOPTS="--style=attach --indent-switches --convert-tabs \
|
2021-05-29 02:37:13 +00:00
|
|
|
--align-pointer=name --pad-header --pad-oper --unpad-paren --indent-labels --formatted"
|
2019-03-23 17:50:50 +00:00
|
|
|
|
|
|
|
astyle $STYLEOPTS */*.c
|
|
|
|
astyle $STYLEOPTS */*/*.c
|
|
|
|
astyle $STYLEOPTS */*/*.h
|
2021-05-29 02:37:13 +00:00
|
|
|
rm -f */*.c.orig
|
|
|
|
rm -f */*/*.c.orig
|
|
|
|
rm -f */*/*.h.orig
|