Browse Source

Wrapper for indent utility

Serj Kalichev 4 years ago
parent
commit
72fd57e6d5
1 changed files with 19 additions and 0 deletions
  1. 19 0
      indent.sh

+ 19 - 0
indent.sh

@@ -0,0 +1,19 @@
+#!/bin/sh
+opts=""
+
+# Blank lines
+opts="$opts -bad -bap -nsob"
+
+# Statements
+opts="$opts -br -ce -cdw -ss -ncs -npcs -saf -sai -saw -nprs -cli0 -cbi0"
+
+# Declarations
+opts="$opts -di1 -nbc -npsl -brs -brf"
+
+# Indentation
+opts="$opts -nlp -i8 -ci8 -ip0 -ts8 -il1"
+
+# Breaking long lines
+opts="$opts -nbbo -hnl -l80"
+
+indent $opts "$@"