1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-16 16:37:10 +01:00
build/util/depends.sh
David Oberhollenzer 015cb894cd Major cleanup
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-01-30 14:02:09 +01:00

23 lines
467 B
Bash
Executable file

include_pkg() {
PKGDIR="$1" # globally visible package directory
PKGNAME="$2" # globally visible package name
unset -f build deploy prepare
unset -v VERSION TARBALL URL SRCDIR SHA256SUM DEPENDS
source "$SCRIPTDIR/$PKGDIR/$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 "$PKGDIR" "$DEP"
dependencies
done
fi
}