From b13bd7ad0682acc0edac5d298df6f1a7371cd882 Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Wed, 22 Jun 2011 21:41:14 +0300 Subject: [PATCH] Fix #2843, Astyle script does not recognize Astyle 2.02 http://sourceforge.net/apps/trac/cppcheck/ticket/2843 --- runastyle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runastyle b/runastyle index b09e6574c..e12e04954 100755 --- a/runastyle +++ b/runastyle @@ -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