-
Notifications
You must be signed in to change notification settings - Fork 0
/
bindep_install.sh
executable file
·27 lines (23 loc) · 954 Bytes
/
bindep_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2021
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
set -o errexit
set -o nounset
set -o pipefail
if ! command -v bindep; then
curl -fsSL https://raw.githubusercontent.com/electrocucaracha/pkg-mgr_scripts/master/install.sh | PKG=bindep bash
fi
if [ -n "${PKG_BINDEP_PROFILE-}" ]; then
PKG="$(bindep -b "$PKG_BINDEP_PROFILE" || :)"
else
PKG="$(bindep -b || :)"
fi
export PKG
echo "Installing binary dependencies..."
curl -fsSL https://raw.githubusercontent.com/electrocucaracha/pkg-mgr_scripts/master/install.sh | bash