1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-29 18:00:26 +00:00
janet/tools/format.sh
2019-12-04 14:02:37 +13:00

11 lines
270 B
Bash
Executable File

#!/usr/bin/env bash
# Format all code with astyle
STYLEOPTS="--style=attach --indent-switches --convert-tabs \
--align-pointer=name --pad-header --pad-oper --unpad-paren --indent-labels"
astyle $STYLEOPTS */*.c
astyle $STYLEOPTS */*/*.c
astyle $STYLEOPTS */*/*.h