From 6a47b55fd2f47416d45e6244e9f6c300d7b9b61f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 21 May 2015 22:58:50 -0500 Subject: [PATCH] Check that we have the right astyle version. --- contrib/utilities/indent | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/contrib/utilities/indent b/contrib/utilities/indent index bdd99afc40..90ef508f65 100755 --- a/contrib/utilities/indent +++ b/contrib/utilities/indent @@ -24,6 +24,17 @@ if test ! -f contrib/utilities/astyle.rc ; then exit fi +if test -z "`which astyle`" ; then + echo "*** No astyle program found." + exit +fi + +if test "`astyle --version 2>&1`" != "Artistic Style Version 2.04" ; then + echo "*** Found a version of astyle different than the required version 2.04." + exit +fi + + # loop over all directories in which we may have source files; # collect a list of files and then spawn a parallel process to -- 2.39.5