0001
0002
0003
0004 PARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1"
0005
0006 RES=`indent --version | cut -d' ' -f3`
0007 if [ "$RES" = "" ]; then
0008 exit 1
0009 fi
0010 V1=`echo $RES | cut -d'.' -f1`
0011 V2=`echo $RES | cut -d'.' -f2`
0012 V3=`echo $RES | cut -d'.' -f3`
0013
0014 if [ $V1 -gt 2 ]; then
0015 PARAM="$PARAM -il0"
0016 elif [ $V1 -eq 2 ]; then
0017 if [ $V2 -gt 2 ]; then
0018 PARAM="$PARAM -il0"
0019 elif [ $V2 -eq 2 ]; then
0020 if [ $V3 -ge 10 ]; then
0021 PARAM="$PARAM -il0"
0022 fi
0023 fi
0024 fi
0025
0026 indent $PARAM "$@"