1*4882a593Smuzhiyun#!/bin/sh 2*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunPARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1" 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunRES=`indent --version | cut -d' ' -f3` 7*4882a593Smuzhiyunif [ "$RES" = "" ]; then 8*4882a593Smuzhiyun exit 1 9*4882a593Smuzhiyunfi 10*4882a593SmuzhiyunV1=`echo $RES | cut -d'.' -f1` 11*4882a593SmuzhiyunV2=`echo $RES | cut -d'.' -f2` 12*4882a593SmuzhiyunV3=`echo $RES | cut -d'.' -f3` 13*4882a593Smuzhiyun 14*4882a593Smuzhiyunif [ $V1 -gt 2 ]; then 15*4882a593Smuzhiyun PARAM="$PARAM -il0" 16*4882a593Smuzhiyunelif [ $V1 -eq 2 ]; then 17*4882a593Smuzhiyun if [ $V2 -gt 2 ]; then 18*4882a593Smuzhiyun PARAM="$PARAM -il0" 19*4882a593Smuzhiyun elif [ $V2 -eq 2 ]; then 20*4882a593Smuzhiyun if [ $V3 -ge 10 ]; then 21*4882a593Smuzhiyun PARAM="$PARAM -il0" 22*4882a593Smuzhiyun fi 23*4882a593Smuzhiyun fi 24*4882a593Smuzhiyunfi 25*4882a593Smuzhiyun 26*4882a593Smuzhiyunindent $PARAM "$@" 27