Permalink
Browse files

Feature: Added post-gem-install message. Thanks tmm1!

  • Loading branch information...
1 parent 244759b commit 3f1cc4fd3f9df7c9019ca6ea514f5c86a3c538ea @wayneeseguin wayneeseguin committed Dec 10, 2009
Showing with 17 additions and 3 deletions.
  1. +12 −0 Rakefile
  2. +2 −2 binscripts/rvm
  3. +3 −1 scripts/rvm
View
@@ -49,6 +49,18 @@ begin
gemspec.homepage = "http://github.com/wayneeseguin/rvm"
gemspec.extensions << "extconf.rb" if File::exists?("extconf.rb")
gemspec.rubyforge_project = "rvm"
+ gemspec.post_install_message = <<-POST_INSTALL_MESSAGE
+#{"*" * 80}
+
+ In order to setup rvm for your user's environment you must now run rvm-install.
+ rvm-install will be found in your current gems bin directory corresponding to where the gem was installed.
+
+ rvm-install will install the scripts to your user account and append itself to your profiles in order to
+ inject the proper rvm functions into your shell so that you can manage multiple rubies.
+
+#{"*" * 80}
+ POST_INSTALL_MESSAGE
+
end
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler -s http://gemcutter.org/"
View
@@ -6,9 +6,9 @@ if [[ -z "$rvm_path" ]] ; then unset rvm_path ; fi
if [[ -z "$rvm_path" ]] ; then
if [[ "root" = "$(whoami)" ]] ; then
- rvm_path="${rvm_path:-/usr/local/rvm}"
+ rvm_path="/usr/local/rvm"
else
- rvm_path="${rvm_path:-$HOME/.rvm}"
+ rvm_path="$HOME/.rvm"
fi
fi
View
@@ -16,7 +16,9 @@ if [[ "$rvm_loaded_flag" != "1" ]] || [[ "$rvm_reload_flag" = "1" ]] ; then
rvm_path="/usr/local/rvm"
else
if [[ -d "$HOME/.rvm" ]] ; then rvm_path="$HOME/.rvm" ; fi
- if [[ -d "/usr/local/bin/rvm" ]] && [[ -f "/usr/local/bin/rvm" ]] ; then rvm_path="${rvm_path:-"/usr/local/rvm"}" ; fi
+ if [[ -d "/usr/local/bin/rvm" ]] && [[ -s "/usr/local/bin/rvm" ]] ; then
+ rvm_path="${rvm_path:-"/usr/local/rvm"}"
+ fi
fi
fi

0 comments on commit 3f1cc4f

Please sign in to comment.