Changeset 261

Show
Ignore:
Timestamp:
07/17/06 02:43:32 (2 years ago)
Author:
tg
Message:

* tell which version of make is too old
* handle 3.79.1 (currently in fink)

NB: 3.79.1 and 3.80 on Mac OSX Tiger are both too old.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/scripts/scan-tools.sh

    r238 r261  
    8282X=$(gmake --version 2>&1 | grep '^GNU Make' | \ 
    8383    sed -e 's/GNU Make //' -e 's/version //' -e 's/, by.*$//') 
     84[[ $X = +([0-9]).+([0-9]).+([0-9]) ]] && X=${X%.*} 
    8485if [[ $X = +([0-9]).+([0-9]) ]]; then 
    8586        let major=${X%.*} 
     
    9596fi 
    9697if (( (major < 3) || ((major == 3) && (minor < 81)) )); then 
    97         echo GNU make too old. 
     98        echo GNU make $major.$minor too old. 
    9899        echo Please install GNU make 3.81 or higher to continue. 
    99100        if [[ $NO_ERROR = 1 || -s /etc/debian_version ]]; then