Browse Source

Astyle: allow version 3.1

sbg
Julien Lecoeur 7 years ago committed by Daniel Agar
parent
commit
b299d6222a
  1. 6
      Tools/astyle/check_code_style_all.sh

6
Tools/astyle/check_code_style_all.sh

@ -5,6 +5,7 @@ set -eu @@ -5,6 +5,7 @@ set -eu
ASTYLE_VER_REQUIRED_1="Artistic Style Version 2.06"
ASTYLE_VER_REQUIRED_2="Artistic Style Version 3.0"
ASTYLE_VER_REQUIRED_3="Artistic Style Version 3.0.1"
ASTYLE_VER_REQUIRED_4="Artistic Style Version 3.1"
astyle_ver() {
echo "PX4 requires at least ${ASTYLE_VER_REQUIRED_1}"
@ -23,10 +24,11 @@ else @@ -23,10 +24,11 @@ else
if [ "$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_1" -a \
"$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_2" -a \
"$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_3" ];
"$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_3" -a \
"$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_4" ];
then
echo "Error: you're using ${ASTYLE_VER}"
echo "but should be using ${ASTYLE_VER_REQUIRED_1}, ${ASTYLE_VER_REQUIRED_2}, or ${ASTYLE_VER_REQUIRED_3} instead"
echo "but should be using ${ASTYLE_VER_REQUIRED_1}, ${ASTYLE_VER_REQUIRED_2}, ${ASTYLE_VER_REQUIRED_3}, or ${ASTYLE_VER_REQUIRED_4} instead"
exit 1
fi
fi

Loading…
Cancel
Save