File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ if [ "`uname`" = "Darwin" ]; then
22
22
fi
23
23
24
24
# Check automake version
25
- AM_VERSION=` automake --version | sed -n -e ' s#[^0-9]* \([0-9]*\)\.\([0-9]*\)\.\( [0-9]*\).*$#\1 \2 \3#p' `
25
+ AM_VERSION=` automake --version | sed -n -e ' s#[^0-9]* \([0-9]*\)\.\([0-9]*\)*\.*\(\( [0-9]*\) \).*$#\1 \2 \3#p' `
26
26
AM_V1=` echo $AM_VERSION | awk ' {print $1}' `
27
27
AM_V2=` echo $AM_VERSION | awk ' {print $2}' `
28
- AM_V3=` echo $AM_VERSION | awk ' {print $3}' `
28
+ AM_V3=` echo $AM_VERSION | awk ' {if ($NF > 2) print $3; else print "0"; }' `
29
29
30
30
if [ $AM_1 -gt $AM_V1 ]; then
31
31
AM_ERROR=1
45
45
46
46
if [ " $AM_ERROR " = " 1" ]; then
47
47
echo -e ' \E[31;m'
48
- echo -n " Your automake version ` automake --version | sed -n -e ' s#[^0-9]* \([0-9]*\.[0-9]*\.[0-9]*\).*#\1#p' ` "
48
+ echo -n " Your automake version ` automake --version | sed -n -e ' s#[^0-9]* \([0-9]*\.[0-9]*\.* [0-9]*\).*#\1#p' ` "
49
49
echo " is older than the suggested one, $AM_1 .$AM_2 .$AM_3 "
50
50
echo " Go on at your own risk. :-)"
51
51
echo
You can’t perform that action at this time.
0 commit comments