18c2ecf20Sopenharmony_ci#!/bin/sh 28c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciPARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1" 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciRES=`indent --version | cut -d' ' -f3` 78c2ecf20Sopenharmony_ciif [ "$RES" = "" ]; then 88c2ecf20Sopenharmony_ci exit 1 98c2ecf20Sopenharmony_cifi 108c2ecf20Sopenharmony_ciV1=`echo $RES | cut -d'.' -f1` 118c2ecf20Sopenharmony_ciV2=`echo $RES | cut -d'.' -f2` 128c2ecf20Sopenharmony_ciV3=`echo $RES | cut -d'.' -f3` 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciif [ $V1 -gt 2 ]; then 158c2ecf20Sopenharmony_ci PARAM="$PARAM -il0" 168c2ecf20Sopenharmony_cielif [ $V1 -eq 2 ]; then 178c2ecf20Sopenharmony_ci if [ $V2 -gt 2 ]; then 188c2ecf20Sopenharmony_ci PARAM="$PARAM -il0" 198c2ecf20Sopenharmony_ci elif [ $V2 -eq 2 ]; then 208c2ecf20Sopenharmony_ci if [ $V3 -ge 10 ]; then 218c2ecf20Sopenharmony_ci PARAM="$PARAM -il0" 228c2ecf20Sopenharmony_ci fi 238c2ecf20Sopenharmony_ci fi 248c2ecf20Sopenharmony_cifi 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciindent $PARAM "$@" 27