mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
scripts/bootstrap.sh: respect ABUILD_SHAREDIR
This commit is contained in:
parent
db8c51af38
commit
d5e5c01050
@ -40,9 +40,10 @@ EOF
|
||||
fi
|
||||
|
||||
# get abuild configurables
|
||||
[ -e /usr/share/abuild/functions.sh ] || (echo "abuild not found" ; exit 1)
|
||||
CBUILDROOT="$(CTARGET=$TARGET_ARCH . /usr/share/abuild/functions.sh ; echo $CBUILDROOT)"
|
||||
. /usr/share/abuild/functions.sh
|
||||
sharedir=${ABUILD_SHAREDIR:-/usr/share/abuild}
|
||||
[ -e "$sharedir"/functions.sh ] || (echo "abuild not found" ; exit 1)
|
||||
CBUILDROOT="$(CTARGET=$TARGET_ARCH . "$sharedir"/functions.sh ; echo $CBUILDROOT)"
|
||||
. "$sharedir"/functions.sh
|
||||
[ -z "$CBUILD_ARCH" ] && die "abuild is too old (use 2.29.0 or later)"
|
||||
[ -z "$CBUILDROOT" ] && die "CBUILDROOT not set for $TARGET_ARCH"
|
||||
export CBUILD
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user