Changeset 346

Show
Ignore:
Timestamp:
07/22/06 04:46:18 (2 years ago)
Author:
tg
Message:

add missing checks for gzip(1) existence and workability

Files:

Legend:

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

    r289 r346  
    144144fi 
    145145 
     146if ! which gzip >/dev/null 2>&1; then 
     147        echo You must install gzip to continue. 
     148        exit 1 
     149fi 
     150 
    146151if ! which bzip2 >/dev/null 2>&1; then 
    147152        echo You must install bzip2 to continue. 
     
    183188        } 
    184189EOF 
    185 X=$(echo 'Yay! Native compiler works.' | gmake TOPDIR=$topdir LDADD=-lz 2>&1) 
     190X=$(echo 'Yay! Native compiler works.' | gzip | \ 
     191    gmake TOPDIR=$topdir LDADD=-lz 2>&1) 
    186192if [[ $X != *@(Native compiler works)* ]]; then 
    187193        echo Cannot compile a libz test programme.