Fix #2843, Astyle script does not recognize Astyle 2.02
http://sourceforge.net/apps/trac/cppcheck/ticket/2843
This commit is contained in:
parent
8b8ea6fcbf
commit
b13bd7ad06
|
@ -5,10 +5,10 @@
|
||||||
# the past).
|
# the past).
|
||||||
|
|
||||||
# If project management wishes to take a newer astyle version into use
|
# If project management wishes to take a newer astyle version into use
|
||||||
# just change this string to match astyle version string.
|
# just change this string to match the start of astyle version string.
|
||||||
ASTYLE_VERSION="Artistic Style Version 2.01"
|
ASTYLE_VERSION="Artistic Style Version 2."
|
||||||
|
|
||||||
if [ "`astyle --version 2>&1`" != "${ASTYLE_VERSION}" ]; then
|
if [[ "`astyle --version 2>&1`" != ${ASTYLE_VERSION}* ]]; then
|
||||||
echo "You should use: ${ASTYLE_VERSION}";
|
echo "You should use: ${ASTYLE_VERSION}";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue