1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-18 09:19:46 +01:00
build/util/depends.sh
David Oberhollenzer 1636fc8aac Merge management of regular and toolchain packages
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-02-15 23:47:54 +01:00

22 lines
402 B
Bash
Executable file

include_pkg() {
PKGNAME="$1" # globally visible package name
unset -f build deploy prepare
unset -v VERSION TARBALL URL SRCDIR SHA256SUM DEPENDS
source "$SCRIPTDIR/pkg/$PKGNAME/build"
}
dependencies() {
local depends="$DEPENDS"
if [ ! -z "$depends" ]; then
for DEP in $depends; do
echo "$PKGNAME $DEP"
done
for DEP in $depends; do
include_pkg "$DEP"
dependencies
done
fi
}