indent.sh 358 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. opts=""
  3. # Blank lines
  4. opts="$opts -bad -bap -nsob"
  5. # Statements
  6. opts="$opts -br -ce -cdw -ss -ncs -npcs -saf -sai -saw -nprs -cli0 -cbi0"
  7. # Declarations
  8. opts="$opts -di1 -nbc -npsl -brs -blf"
  9. # Indentation
  10. opts="$opts -nlp -i8 -ci8 -ip0 -ts8 -il1"
  11. # Breaking long lines
  12. opts="$opts -nbbo -hnl -l80"
  13. # Comments
  14. opts="$opts"
  15. indent $opts "$@"