11da177e4SLinus Torvalds#!/bin/sh 2*78c52502SJean Delvare 3ee8900c9SJoe PerchesPARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1" 4*78c52502SJean Delvare 5*78c52502SJean DelvareRES=`indent --version | cut -d' ' -f3` 6fa70900eSJean Delvareif [ "$RES" = "" ]; then 7fa70900eSJean Delvare exit 1 8fa70900eSJean Delvarefi 9*78c52502SJean DelvareV1=`echo $RES | cut -d'.' -f1` 10*78c52502SJean DelvareV2=`echo $RES | cut -d'.' -f2` 11*78c52502SJean DelvareV3=`echo $RES | cut -d'.' -f3` 12*78c52502SJean Delvare 13ee8900c9SJoe Perchesif [ $V1 -gt 2 ]; then 14ee8900c9SJoe Perches PARAM="$PARAM -il0" 15ee8900c9SJoe Percheselif [ $V1 -eq 2 ]; then 16ee8900c9SJoe Perches if [ $V2 -gt 2 ]; then 17*78c52502SJean Delvare PARAM="$PARAM -il0" 18ee8900c9SJoe Perches elif [ $V2 -eq 2 ]; then 19ee8900c9SJoe Perches if [ $V3 -ge 10 ]; then 20ee8900c9SJoe Perches PARAM="$PARAM -il0" 21ee8900c9SJoe Perches fi 22ee8900c9SJoe Perches fi 23ee8900c9SJoe Perchesfi 24*78c52502SJean Delvare 25ee8900c9SJoe Perchesindent $PARAM "$@" 26