ovl: do not cleanup directory and whiteout index entries
[linux/fpc-iii.git] / scripts / Lindent
blob57b564c24d61dd42b96e2844312202ce882aa3de
1 #!/bin/sh
3 PARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1"
5 RES=`indent --version | cut -d' ' -f3`
6 if [ "$RES" = "" ]; then
7 exit 1
8 fi
9 V1=`echo $RES | cut -d'.' -f1`
10 V2=`echo $RES | cut -d'.' -f2`
11 V3=`echo $RES | cut -d'.' -f3`
13 if [ $V1 -gt 2 ]; then
14 PARAM="$PARAM -il0"
15 elif [ $V1 -eq 2 ]; then
16 if [ $V2 -gt 2 ]; then
17 PARAM="$PARAM -il0"
18 elif [ $V2 -eq 2 ]; then
19 if [ $V3 -ge 10 ]; then
20 PARAM="$PARAM -il0"
25 indent $PARAM "$@"