1
0

ngindent 315 B

12345678910111213141516
  1. #/bin/sh
  2. INDENTARGS="-kr -i8 -ts8 -l80 -c3 -cd41 -ss -ncs -psl"
  3. # check if indent(1) is available
  4. type indent >/dev/null 2>&1 && INDENT="indent"
  5. type gnuindent >/dev/null 2>&1 && INDENT="gnuindent"
  6. if [ -z "$INDENT" ]; then
  7. echo "Error: GNU \"indent\" not found!"
  8. exit 1
  9. fi
  10. $INDENT -v $INDENTARGS $*
  11. # -eof-