mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 08:35:22 +00:00
56 lines
1.4 KiB
Bash
Executable File
56 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
ORIGDIR=`pwd`
|
|
pushd `dirname $0` > /dev/null
|
|
SCRIPT_DIR=`pwd`
|
|
popd > /dev/null
|
|
: ${CURRENT_OTP:="$HOME/erlang-R16B02"}
|
|
: ${RT_CURRENT_TAG:=""}
|
|
|
|
|
|
if [ -n "$DEBUG_RTDEV" ]; then
|
|
echo "= Configuration ================================================="
|
|
echo "Build dir: $ORIGDIR"
|
|
echo "rtdev-* scripts: $SCRIPT_DIR"
|
|
echo "Erlang: $CURRENT_OTP"
|
|
echo
|
|
fi
|
|
|
|
echo "================== riak_test Omnibus Installer =================="
|
|
echo
|
|
echo "This is an omnibus script that builds all the necessary versions "
|
|
echo "of Erlang and Riak (including the latest from Github) for running"
|
|
echo "riak_test and installs them into $HOME/rt/riak. "
|
|
echo
|
|
echo -n "Are you sure you want to continue? [Y|n] "
|
|
read continue
|
|
if [[ $continue == n || $continue == N ]]; then
|
|
echo
|
|
echo "Aborting install!"
|
|
exit 1
|
|
fi
|
|
|
|
echo
|
|
echo "= Building Riak Releases ========================================"
|
|
echo
|
|
|
|
source $SCRIPT_DIR/rtdev-build-releases.sh
|
|
|
|
echo "= Installing Riak Releases ======================================"
|
|
echo
|
|
source $SCRIPT_DIR/rtdev-setup-releases.sh
|
|
|
|
echo
|
|
echo "= Building and Installing Riak from Git ========================="
|
|
echo
|
|
|
|
cd $ORIGDIR
|
|
build "current" $CURRENT_OTP $RT_CURRENT_TAG
|
|
echo
|
|
cd current
|
|
source $SCRIPT_DIR/rtdev-current.sh
|
|
|
|
cd $ORIGDIR
|
|
echo
|
|
echo "= Build complete! ==============================================="
|