scripts/rvm-install in rvm-0.1.40 vs scripts/rvm-install in rvm-0.1.41
- old
+ new
@@ -122,11 +122,11 @@
done
#
# Scripts
#
-for dir_name in config scripts examples lib hooks help ; do
+for dir_name in config scripts examples lib hooks help patches; do
spinner
mkdir -p "$rvm_path/$dir_name"
if [[ -d "$source_path/$dir_name" ]] ; then
cp -Rf "$source_path/$dir_name" "$rvm_path"
fi
@@ -182,20 +182,33 @@
#
# Initial Interpreter Gemsets.
#
spinner
mkdir -p "$rvm_gemsets_path"
-for gemset_file in $(cd gemsets ; find . -iname '*.gems' | sed 's/\.\///') ; do
+for gemset_file in $(cd gemsets ; find . -iname '*.gems' | sed 's/^\.\///') ; do
source_path="$(pwd)/gemsets"
destination="$rvm_gemsets_path/$gemset_file"
destination_path="$(dirname "$destination")"
if [[ ! -s "$destination" ]] ; then
mkdir -p "$destination_path"
cp "$source_path/$gemset_file" "$destination"
fi
-done ; unset destination destination_path source_path
+done ; unset destination destination_path source_path gemset_file
+spinner
+mkdir -p "$rvm_patchsets_path"
+for patchsets_file in $(cd gemsets ; find . -iname '*' | sed 's/^\.\///') ; do
+ source_path="$(pwd)/gemsets"
+ destination="$rvm_patchsets_path/$patchset_file"
+ destination_path="$(dirname "$destination")"
+ if [[ ! -s "$destination" ]] ; then
+ mkdir -p "$destination_path"
+ cp "$source_path/$patchset_file" "$destination"
+ fi
+done ; unset destination destination_path source_path patchset_file
+
+
#
# 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/"
@@ -264,9 +277,13 @@
if [[ "root" = "$(whoami)" ]] ; then
printf "\n Symlinking rvm to $rvm_bin_path/rvm ..."
mkdir -p $rvm_bin_path
chmod +x $rvm_bin_path/rvm
chmod +x $rvm_bin_path/rvmsudo
+ printf "\n Copying manpages into place."
+ for man_file in $(\ls "$install_source_path/man"); do
+ cp -f "$install_source_path/man/$man_file" "$rvm_man_path/$man_file"
+ done
fi
if [[ "$upgrade_flag" -eq 0 ]] ; then
./scripts/notes
fi