Blob


1 #/bin/sh
3 INDENTARGS="-kr -i8 -ts8 -l80 -c3 -cd41 -ss -ncs -psl"
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"
9 if [ -z "$INDENT" ]; then
10 echo "Error: GNU \"indent\" not found!"
11 exit 1
12 fi
14 $INDENT -v $INDENTARGS $*
16 # -eof-