From a31db6c8f5f3462e990fdf86bef18e3590b29bcf Mon Sep 17 00:00:00 2001 From: Sandro Elsweijer Date: Mon, 30 Sep 2024 13:01:13 +0200 Subject: [PATCH] allow more clang-format versions --- scripts/t8indent | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/t8indent b/scripts/t8indent index 8c1567acb7..bf5aff81a3 100755 --- a/scripts/t8indent +++ b/scripts/t8indent @@ -31,8 +31,7 @@ FORMAT_OPTIONS="-i --style=file" # Required version of the clang format program. REQUIRED_VERSION_MAJOR="17" REQUIRED_VERSION_MINOR="0" -REQUIRED_VERSION_PATCH="1" -REQUIRED_VERSION_STRING="${REQUIRED_VERSION_MAJOR}.${REQUIRED_VERSION_MINOR}.${REQUIRED_VERSION_PATCH}" +REQUIRED_VERSION_STRING="${REQUIRED_VERSION_MAJOR}.${REQUIRED_VERSION_MINOR}" FORMAT=`which clang-format 2> /dev/null` @@ -52,7 +51,7 @@ MAJOR=`echo $VERSION | cut -d. -f1` MINOR=`echo $VERSION | cut -d. -f2` PATCH=`echo $VERSION | cut -d. -f3` -if [[ "$MAJOR" != "$REQUIRED_VERSION_MAJOR" || $MINOR != "$REQUIRED_VERSION_MINOR" || $PATCH != "$REQUIRED_VERSION_PATCH" ]]; then +if [[ "$MAJOR" != "$REQUIRED_VERSION_MAJOR" || $MINOR != "$REQUIRED_VERSION_MINOR" ]]; then echo "Please install clang-format version $REQUIRED_VERSION_STRING" exit 1 fi