Changeset fa281a9 in freewrt for scripts/scan-pkgs.sh


Ignore:
Timestamp:
Jul 22, 2006, 5:02:04 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
e13d736
Parents:
fedf8f4
Message:

instead of aborting as soon as an error is found,
try to do as many checks as possible (taking into
account that e.g. if the compiler, make or gzip are
not found, some later tests will fail too)

after discussion with wbx@ some days ago

also remove the confusing redundant clause,
spotted by nbd, ok wbx@

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/scan-pkgs.sh

    rfedf8f4 rfa281a9  
    1818# linked into a bigger work whose licence does not allow such clause
    1919# and the author of this work is given due credit in the bigger work
    20 # or its documentation. Specifically, re-using this code in any work
    21 # covered by the GNU General Public License version 1 or Library Ge-
    22 # neral Public License (any version) is permitted.
     20# or its documentation.
    2321#
    2422# Licensor offers the work "AS IS" and WITHOUT WARRANTY of any kind,
     
    4139topdir=$(readlink -nf $(dirname $0)/..)
    4240export PATH=$topdir/lbin:$PATH
     41out=0
    4342
    4443. $topdir/.config
     
    5554        if ! which jikes >/dev/null 2>&1; then
    5655                echo >&2 You need jikes to build $NEED_JIKES
    57                 exit 1
     56                out=1
    5857        fi
    5958fi
     
    6160#-- end of dependency checks
    6261
    63 exit 0
     62exit $out
Note: See TracChangeset for help on using the changeset viewer.