]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check that we have the right astyle version. 953/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 22 May 2015 03:58:50 +0000 (22:58 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 22 May 2015 03:58:50 +0000 (22:58 -0500)
contrib/utilities/indent

index bdd99afc40aa82e8361b157bbfd3bcfcdb215f51..90ef508f653362abeff082cf3ac69ca78e79272f 100755 (executable)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.