Changeset 99d4f9d3 in freewrt for scripts/scan-tools.sh


Ignore:
Timestamp:
Jul 22, 2006, 4:46:18 AM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
b5ce642
Parents:
7d9827e
Message:

add missing checks for gzip(1) existence and workability

git-svn-id: svn://www.freewrt.org/trunk/freewrt@346 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/scan-tools.sh

    r7d9827e r99d4f9d3  
    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.
Note: See TracChangeset for help on using the changeset viewer.