mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
build-submodules: source OPAM environemnt if not present
This commit is contained in:
parent
000cd8b2d9
commit
9170ead865
@ -88,6 +88,15 @@ ROOTDIR="$(pwd)"
|
||||
PKGDIR="$ROOTDIR/packages"
|
||||
SCRIPTDIR="$ROOTDIR/scripts"
|
||||
|
||||
# Source OPAM environment if not already set
|
||||
if [ -z "$OPAMROOT" ]; then
|
||||
if [ -x "$(command -v opam)" ]; then
|
||||
eval $(opam env --root=/opt/opam --set-root)
|
||||
else
|
||||
echo "WARNING: 'opam' not installed, can't build VyConf and libvyosconfig"
|
||||
fi
|
||||
fi
|
||||
|
||||
package_in_buildlist() {
|
||||
# Return true if buildlist is not set
|
||||
if [ -z "$BUILDLIST" ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user