xref: /kernel/linux/linux-6.6/scripts/Lindent
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/scripts/
162306a36Sopenharmony_ci#!/bin/sh
262306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
362306a36Sopenharmony_ci
462306a36Sopenharmony_ciPARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1"
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciRES=`indent --version | cut -d' ' -f3`
762306a36Sopenharmony_ciif [ "$RES" = "" ]; then
862306a36Sopenharmony_ci	exit 1
962306a36Sopenharmony_cifi
1062306a36Sopenharmony_ciV1=`echo $RES | cut -d'.' -f1`
1162306a36Sopenharmony_ciV2=`echo $RES | cut -d'.' -f2`
1262306a36Sopenharmony_ciV3=`echo $RES | cut -d'.' -f3`
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciif [ $V1 -gt 2 ]; then
1562306a36Sopenharmony_ci  PARAM="$PARAM -il0"
1662306a36Sopenharmony_cielif [ $V1 -eq 2 ]; then
1762306a36Sopenharmony_ci  if [ $V2 -gt 2 ]; then
1862306a36Sopenharmony_ci    PARAM="$PARAM -il0"
1962306a36Sopenharmony_ci  elif [ $V2 -eq 2 ]; then
2062306a36Sopenharmony_ci    if [ $V3 -ge 10 ]; then
2162306a36Sopenharmony_ci      PARAM="$PARAM -il0"
2262306a36Sopenharmony_ci    fi
2362306a36Sopenharmony_ci  fi
2462306a36Sopenharmony_cifi
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciindent $PARAM "$@"
27

Indexes created Thu Nov 07 10:32:03 CST 2024