Appends kerl config options to existing env. variable if set.
If the KERL_CONFIGURE_OPTIONS environment variable is set, options added by `scripts/bootstrap` will be appended instead of being destructive. This allows developers to have options configured within their environment respected.
This commit is contained in:
parent
3203d626f0
commit
6dfa9f0349
1 changed files with 2 additions and 2 deletions
|
@ -6,10 +6,10 @@ set -e
|
||||||
if ! brew -v &> /dev/null
|
if ! brew -v &> /dev/null
|
||||||
then
|
then
|
||||||
echo "WARNING: Cannot find brew. Skipping brewfile installation."
|
echo "WARNING: Cannot find brew. Skipping brewfile installation."
|
||||||
export KERL_CONFIGURE_OPTIONS="--disable-hipe"
|
export KERL_CONFIGURE_OPTIONS="$KERL_CONFIGURE_OPTIONS --disable-hipe"
|
||||||
else
|
else
|
||||||
brew bundle
|
brew bundle
|
||||||
export KERL_CONFIGURE_OPTIONS="--disable-hipe --with-ssl=$(brew --prefix openssl)"
|
export KERL_CONFIGURE_OPTIONS="$KERL_CONFIGURE_OPTIONS --disable-hipe --with-ssl=$(brew --prefix openssl)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which asdf &> /dev/null
|
if ! which asdf &> /dev/null
|
||||||
|
|
Loading…
Reference in a new issue