Commit 5c73a6f2 by John Jarvis

betting rvmrc handling

parent 9c31715d
...@@ -163,6 +163,11 @@ cat<<EO ...@@ -163,6 +163,11 @@ cat<<EO
To compile scipy and numpy from source use the -c option To compile scipy and numpy from source use the -c option
!!! Do not run this script from an existing virtualenv !!!
If you are in a ruby/python virtualenv please start a new
shell.
EO EO
info info
output "Press return to begin or control-C to abort" output "Press return to begin or control-C to abort"
...@@ -172,12 +177,15 @@ read dummy ...@@ -172,12 +177,15 @@ read dummy
exec > >(tee $LOG) exec > >(tee $LOG)
exec 2>&1 exec 2>&1
if [[ -f $HOME/.rvmrc ]]; then if ! grep -q "export rvm_path=$RUBY_DIR" ~/.rvmrc; then
output "$HOME/.rvmrc alredy exists, not adding $RUBY_DIR" if [[ -f $HOME/.rvmrc ]]; then
else output "Copying existing .rvmrc to .rvmrc.bak"
output "Creating $HOME/.rmrc so rvm uses $RUBY_DIR" cp $HOME/.rvmrc $HOME/.rvmrc.bak
fi
output "Creating $HOME/.rvmrc so rvm uses $RUBY_DIR"
echo "export rvm_path=$RUBY_DIR" > $HOME/.rvmrc echo "export rvm_path=$RUBY_DIR" > $HOME/.rvmrc
fi fi
mkdir -p $BASE mkdir -p $BASE
case `uname -s` in case `uname -s` in
[Ll]inux) [Ll]inux)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment