| 1 | #!/bin/bash
|
|---|
| 2 | # $FreeWRT: src/share/misc/licence.template,v 1.8 2006/06/16 23:03:39 tg Rel $
|
|---|
| 3 | #-
|
|---|
| 4 | # Copyright (c) 2006
|
|---|
| 5 | # Thorsten Glaser <tg@mirbsd.de>
|
|---|
| 6 | #
|
|---|
| 7 | # Licensee is hereby permitted to deal in this work without restric-
|
|---|
| 8 | # tion, including unlimited rights to use, publicly perform, modify,
|
|---|
| 9 | # merge, distribute, sell, give away or sublicence, provided all co-
|
|---|
| 10 | # pyright notices above, these terms and the disclaimer are retained
|
|---|
| 11 | # in all redistributions or reproduced in accompanying documentation
|
|---|
| 12 | # or other materials provided with binary redistributions.
|
|---|
| 13 | #
|
|---|
| 14 | # All advertising materials mentioning features or use of this soft-
|
|---|
| 15 | # ware must display the following acknowledgement:
|
|---|
| 16 | # This product includes material provided by Thorsten Glaser.
|
|---|
| 17 | # This acknowledgement does not need to be reprinted if this work is
|
|---|
| 18 | # linked into a bigger work whose licence does not allow such clause
|
|---|
| 19 | # 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.
|
|---|
| 23 | #
|
|---|
| 24 | # Licensor offers the work "AS IS" and WITHOUT WARRANTY of any kind,
|
|---|
| 25 | # express, or implied, to the maximum extent permitted by applicable
|
|---|
| 26 | # law, without malicious intent or gross negligence; in no event may
|
|---|
| 27 | # licensor, an author or contributor be held liable for any indirect
|
|---|
| 28 | # or other damage, or direct damage except proven a consequence of a
|
|---|
| 29 | # direct error of said person and intended use of this work, loss or
|
|---|
| 30 | # other issues arising in any way out of its use, even if advised of
|
|---|
| 31 | # the possibility of such damage or existence of a nontrivial bug.
|
|---|
| 32 | #-
|
|---|
| 33 | # Scan host-tool prerequisites of certain packages before building.
|
|---|
| 34 |
|
|---|
| 35 | if test -z "$BASH_VERSION"; then
|
|---|
| 36 | echo FreeWRT requires GNU bash to be installed, sorry.
|
|---|
| 37 | exit 1
|
|---|
| 38 | fi
|
|---|
| 39 |
|
|---|
| 40 | shopt -s extglob
|
|---|
| 41 | topdir=$(readlink -nf $(dirname $0)/..)
|
|---|
| 42 | export PATH=$topdir/lbin:$PATH
|
|---|
| 43 |
|
|---|
| 44 | . $topdir/.config
|
|---|
| 45 |
|
|---|
| 46 | #-- start adding dependencies here --
|
|---|
| 47 |
|
|---|
| 48 | if [[ -n $BR2_COMPILE_SABLEVM_CLASSPATH ]]; then
|
|---|
| 49 | NEED_JIKES="$NEED_JIKES sablevm-classpath"
|
|---|
| 50 | fi
|
|---|
| 51 |
|
|---|
| 52 | #-- start checking dependencies here --
|
|---|
| 53 |
|
|---|
| 54 | if [[ -n $NEED_JIKES ]]; then
|
|---|
| 55 | if ! which jikes >/dev/null 2>&1; then
|
|---|
| 56 | echo >&2 You need jikes to build $NEED_JIKES
|
|---|
| 57 | exit 1
|
|---|
| 58 | fi
|
|---|
| 59 | fi
|
|---|
| 60 |
|
|---|
| 61 | #-- end of dependency checks
|
|---|
| 62 |
|
|---|
| 63 | exit 0
|
|---|