1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-23 15:00:27 +00:00
janet/tools/format.sh

14 lines
335 B
Bash
Raw Normal View History

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