]> arthur.barton.de Git - ngircd-alex.git/blob - contrib/ngindent
New configuration option "NoIdent" to disable IDENT lookups
[ngircd-alex.git] / contrib / ngindent
1 #/bin/sh
2
3 INDENTARGS="-kr -i8 -ts8 -l80 -c3 -cd41 -ss -ncs -psl"
4
5 # check if indent(1) is available
6 type indent >/dev/null 2>&1 && INDENT="indent"
7 type gnuindent >/dev/null 2>&1 && INDENT="gnuindent"
8
9 if [ -z "$INDENT" ]; then
10         echo "Error: GNU \"indent\" not found!"
11         exit 1
12 fi
13
14 $INDENT -v $INDENTARGS $*
15
16 # -eof-