configure
changeset 381 6a0ee764a60a
parent 377 38720321dad0
child 395 fd7a636532cf
     1.1 --- a/configure	Fri Sep 14 15:57:48 2007 +0000
     1.2 +++ b/configure	Fri Sep 14 19:30:56 2007 +0000
     1.3 @@ -123,8 +123,8 @@
     1.4  
     1.5  # Check bash is present, and at least version 3.0
     1.6  [ -x /bin/bash ] || do_error "bash 3.0 or above was not found in /bin/bash"
     1.7 -bash_version=$(/bin/bash --version |head -n 1 |cut -d ' ' -f 4)
     1.8 -bash_major=$(echo "${bash_version}" |sed -e 's/\..*//g;')
     1.9 +bash_version=$(/bin/bash --version |sed -r -e '2,$d' -e 's/.* version ([[:digit:]]+).*/\1/;')
    1.10 +bash_major=${bash_version%%.*}
    1.11  [ ${bash_major} -ge 3 ] || do_error "bash 3.0 or above is needed (found ${bash_version})"
    1.12  
    1.13  sed -r -e "s,@@BINDIR@@,${BINDIR},g;"   \