Skip to content

Commit

Permalink
Fix for ticket #217 - autogen.sh didn't correctly detect older
Browse files Browse the repository at this point in the history
versions of automake and hence didn't warn the user


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5657 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Aug 2, 2006
1 parent 2352771 commit e200ec8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autogen.sh
Expand Up @@ -22,10 +22,10 @@ if [ "`uname`" = "Darwin" ]; then
fi

# Check automake version
AM_VERSION=`automake --version | sed -n -e 's#[^0-9]* \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$#\1 \2 \3#p'`
AM_VERSION=`automake --version | sed -n -e 's#[^0-9]* \([0-9]*\)\.\([0-9]*\)*\.*\(\([0-9]*\)\).*$#\1 \2 \3#p'`
AM_V1=`echo $AM_VERSION | awk '{print $1}'`
AM_V2=`echo $AM_VERSION | awk '{print $2}'`
AM_V3=`echo $AM_VERSION | awk '{print $3}'`
AM_V3=`echo $AM_VERSION | awk '{if ($NF > 2) print $3; else print "0";}'`

if [ $AM_1 -gt $AM_V1 ]; then
AM_ERROR=1
Expand All @@ -45,7 +45,7 @@ fi

if [ "$AM_ERROR" = "1" ]; then
echo -e '\E[31;m'
echo -n "Your automake version `automake --version | sed -n -e 's#[^0-9]* \([0-9]*\.[0-9]*\.[0-9]*\).*#\1#p'`"
echo -n "Your automake version `automake --version | sed -n -e 's#[^0-9]* \([0-9]*\.[0-9]*\.*[0-9]*\).*#\1#p'`"
echo " is older than the suggested one, $AM_1.$AM_2.$AM_3"
echo "Go on at your own risk. :-)"
echo
Expand Down

0 comments on commit e200ec8

Please sign in to comment.