Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions build-scripts/install-dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
#
# ^ When building community you won't need enterprise, nova.
#
# The script can be run as follows:
# ```
# $ PROJECT=[enterprise|community] EXPLICIT_ROLE=[hub|agent] BUILD_TYPE=[DEBUG|RELEASE] ./buildscripts/build-scripts/install-dependencies
# ```
#
# The script can be run as described in the usage message below:

usage() {
echo "Usage: PROJECT=[nova|community] EXPLICIT_ROLE=[hub|agent] BUILD_TYPE=[DEBUG|RELEASE] $0"
}

. "$(dirname "$0")"/functions
. detect-environment
Expand Down Expand Up @@ -155,7 +155,9 @@ for dep in $DEPS; do
tests=yes
;;
*)
fatal "Unknown build type: $BUILD_TYPE"
log_error "Unknown build type: $BUILD_TYPE"
usage
exit 1
;;
esac

Expand All @@ -171,6 +173,7 @@ for dep in $DEPS; do
esac

# Add $PREFIX to version of built dependencies so they get different package names and are distinguishable from each
# Note that this revision file is created by build-scripts/autogen
revision=$(cat "$BASEDIR"/buildscripts/deps-packaging/revision)
if [ "$BUILDPREFIX" != "/var/cfengine" ]; then
safe_prefix="+$(echo "$PREFIX" | sed 's:/::g')"
Expand Down