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).
|
||||
|
||||
# If project management wishes to take a newer astyle version into use
|
||||
# just change this string to match astyle version string.
|
||||
ASTYLE_VERSION="Artistic Style Version 2.01"
|
||||
# just change this string to match the start of astyle version string.
|
||||
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}";
|
||||
exit 1;
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue