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:
Frank Kumro Jr 2021-06-11 21:18:39 -04:00
parent 3203d626f0
commit 6dfa9f0349

View file

@ -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