Fix #2843, Astyle script does not recognize Astyle 2.02

http://sourceforge.net/apps/trac/cppcheck/ticket/2843
This commit is contained in:
Reijo Tomperi 2011-06-22 21:41:14 +03:00
parent 8b8ea6fcbf
commit b13bd7ad06
1 changed files with 3 additions and 3 deletions

View File

@ -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