From ce100f141dbaaeabf49c1f72dc2b58f1c5e52c48 Mon Sep 17 00:00:00 2001 From: Olivier Courtin Date: Tue, 23 Feb 2010 15:21:45 +0000 Subject: [PATCH] Check astyle version prior to do anything. 'blessed' version is 1.23. Related to #433 and postgis-devel discussions git-svn-id: http://svn.osgeo.org/postgis/trunk@5315 b70326c6-7e19-0410-871a-916f4a2858ee --- astyle.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/astyle.sh b/astyle.sh index 3ec0b5d31..1cc60f69a 100755 --- 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 -- 2.40.0