CI: don't allow clang-format 7 any more

This commit is contained in:
Adriaan de Groot 2021-03-16 16:06:46 +01:00
parent bb426ebac4
commit 3b9c0bdf91

View File

@ -36,7 +36,12 @@ test -x "$AS" || { echo "! $AS is not executable."; exit 1 ; }
test -x "$CF" || { echo "! $CF is not executable."; exit 1 ; } test -x "$CF" || { echo "! $CF is not executable."; exit 1 ; }
unmangle_clang_format="" unmangle_clang_format=""
if expr `"$CF" --version | tr -dc '[^.0-9]' | cut -d . -f 1` '<' 10 > /dev/null ; then format_version=`"$CF" --version | tr -dc '[^.0-9]' | cut -d . -f 1`
if expr "$format_version" '<' 8 > /dev/null ; then
echo "! Clang-format version 8+ required"
exit 1
fi
if expr "$format_version" '<' 10 > /dev/null ; then
: :
else else
unmangle_clang_format=$( dirname $0 )/../.clang-format unmangle_clang_format=$( dirname $0 )/../.clang-format