]> granicus.if.org Git - postgis/commitdiff
Check astyle version prior to do anything. 'blessed' version is 1.23. Related to...
authorOlivier Courtin <olivier.courtin@camptocamp.com>
Tue, 23 Feb 2010 15:21:45 +0000 (15:21 +0000)
committerOlivier Courtin <olivier.courtin@camptocamp.com>
Tue, 23 Feb 2010 15:21:45 +0000 (15:21 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5315 b70326c6-7e19-0410-871a-916f4a2858ee

astyle.sh

index 3ec0b5d31290bb228a0b94b7f0070eb36f85b523..1cc60f69a7e2cb2a2eb3eb31d4fccc62a7b5883b 100755 (executable)
--- a/astyle.sh
+++ b/astyle.sh
@@ -10,6 +10,13 @@ if [ $RET -ne 0 ]; then
        exit
 fi
 
+
+RET=`astyle --version 2>&1`
+if [ "$RET" != "Artistic Style Version 1.23" ]; then
+       echo "Only 1.23 astyle version is 'allowed'"
+       exit
+fi
+
 # Find all "pure" C files in the codebase
 #   - not .in.c used for .sql generation
 #   - not lex.yy.c or wktparse.tab.c as these are generated files