Skip to content

Commit

Permalink
Added migration piece for rubies so that people aren't caught off gua…
Browse files Browse the repository at this point in the history
…rd like with the gem directory change.
  • Loading branch information
wayneeseguin committed Jan 16, 2010
1 parent f374634 commit 12eec19
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/install
Expand Up @@ -109,13 +109,13 @@ if [[ ! -z "$rvm_auto_flag" ]] ; then
fi

#
# TODO: Migrate ~/.rvm/ruby-X,jruby-X,... to ~/.rvm/rubies/
# Migrate ~/.rvm/ruby-X,jruby-X,... to ~/.rvm/rubies/ for 0.1.0.
#
#rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
#mkdir -p $rvm_rubies_path
#for ruby in "$rvm_path"/ruby-* "$rvm_path"/jruby-* "$rvm_path"/mput-* "$rvm_path"/rbx-* ; do
# if [[ -d "$ruby" ]] ; then mv "$ruby" "$rvm_rubies_path" ; fi
#done
rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
mkdir -p "$rvm_rubies_path/"
for ruby in "$rvm_path"/ruby-* "$rvm_path"/jruby-* "$rvm_path"/mput-* "$rvm_path"/rbx-* "$rvm_path"/maglev-* "$rvm_path"/ree-* ; do
if [[ -d "$ruby" ]] ; then mv "$ruby" "$rvm_rubies_path/" ; fi
done

if [[ "root" = "$(whoami)" ]] ; then
echo -e "\n Symlinking rvm to $rvm_symlink_path/rvm ..."
Expand Down

0 comments on commit 12eec19

Please sign in to comment.