rvm 0.0.78 → 0.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/config/db +1 -1
- data/install +9 -7
- data/lib/VERSION.yml +1 -1
- data/rvm.gemspec +2 -2
- data/scripts/cli +2 -2
- data/scripts/gems +23 -4
- data/scripts/install +9 -7
- data/scripts/ruby-installer +5 -2
- data/scripts/rvm-install +9 -7
- data/scripts/update +9 -7
- data/scripts/utility +19 -14
- metadata +2 -2
data/config/db
CHANGED
|
@@ -4,7 +4,7 @@ rubinius_repo_url=git://github.com/evanphx/rubinius.git
|
|
|
4
4
|
shyouhei_repo_url=git://github.com/shyouhei/ruby.git
|
|
5
5
|
macruby_version=nightly
|
|
6
6
|
macruby_repo_url=git://git.macruby.org/macruby/MacRuby.git
|
|
7
|
-
macruby_nightly_url=http://macruby.icoretech.org/latest
|
|
7
|
+
macruby_nightly_url=http://macruby.icoretech.org/latest/macruby_nightly-latest.pkg
|
|
8
8
|
jruby_version=1.4.0
|
|
9
9
|
jruby_repo_url=git://github.com/jruby/jruby.git
|
|
10
10
|
jruby_url=http://jruby.kenai.com/downloads/
|
data/install
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
3
|
rc_files="$HOME/.bash_profile $HOME/.bashrc $HOME/.zshrc"
|
|
4
|
+
if [[ -f "/etc/rvmrc" ]] ; then source "/etc/rvmrc" ; fi
|
|
4
5
|
if [[ "root" = "$(whoami)" ]] ; then
|
|
5
|
-
rvm_path
|
|
6
|
+
rvm_path="${rvm_path:-/usr/local/rvm}"
|
|
6
7
|
rc_files="$rc_files /etc/profile /etc/zshenv"
|
|
7
8
|
else
|
|
8
|
-
|
|
9
|
+
if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi
|
|
10
|
+
rvm_path="${rvm_path:-$HOME/.rvm}"
|
|
9
11
|
fi
|
|
10
12
|
|
|
11
13
|
#
|
|
@@ -73,19 +75,19 @@ if [[ "Linux" = "$system" ]] ; then
|
|
|
73
75
|
|
|
74
76
|
if [[ ! -z "$rvm_apt_get_binary" ]] ; then
|
|
75
77
|
echo -e " $item For jRuby (if you wish to use it) you will need:"
|
|
76
|
-
echo -e " $
|
|
78
|
+
echo -e " $ aptitude install sun-java6-bin sun-java6-jre sun-java6-jdk"
|
|
77
79
|
echo -e " $item For ree (if you wish to use it) you will need:"
|
|
78
|
-
echo -e " $
|
|
80
|
+
echo -e " $ aptitude install libreadline5-dev libssl-dev bison"
|
|
79
81
|
echo -e " $item For 1.9.X (if you wish to use it) we additionally recommend:"
|
|
80
|
-
echo -e " $
|
|
82
|
+
echo -e " $ aptitude install libxml2-dev"
|
|
81
83
|
|
|
82
84
|
elif [[ ! -z "$rvm_emerge_binary" ]] ; then
|
|
83
85
|
echo -e " $item For jRuby (if you wish to use it) you will need:"
|
|
84
|
-
echo -e " $
|
|
86
|
+
echo -e " $ emerge dev-java/sun-jdk dev-java/sun-jre-bin"
|
|
85
87
|
|
|
86
88
|
elif [[ ! -z "$rvm_pacman_binary" ]] ; then
|
|
87
89
|
echo -e " $item For jRuby (if you wish to use it) you will need:"
|
|
88
|
-
echo -e " $
|
|
90
|
+
echo -e " $ pacman -Sy jdk jre"
|
|
89
91
|
|
|
90
92
|
elif [[ ! -z "$rvm_yum_binary" ]] ; then
|
|
91
93
|
echo -e " $item For ree (if you wish to use it) you will need:"
|
data/lib/VERSION.yml
CHANGED
data/rvm.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{rvm}
|
|
8
|
-
s.version = "0.0.
|
|
8
|
+
s.version = "0.0.79"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Wayne E. Seguin"]
|
|
12
|
-
s.date = %q{2009-11-
|
|
12
|
+
s.date = %q{2009-11-18}
|
|
13
13
|
s.default_executable = %q{rvm-install}
|
|
14
14
|
s.description = %q{Manages Ruby interpreter installations and switching between them.}
|
|
15
15
|
s.email = %q{wayneeseguin@gmail.com}
|
data/scripts/cli
CHANGED
data/scripts/gems
CHANGED
|
@@ -121,10 +121,15 @@ __rvm_gems_load() {
|
|
|
121
121
|
rvm_file_name="default.gems"
|
|
122
122
|
elif [[ -f "system.gems" ]] ; then
|
|
123
123
|
rvm_file_name="system.gems"
|
|
124
|
+
elif [[ -f ".gems" ]] ; then
|
|
125
|
+
rvm_file_name=".gems"
|
|
126
|
+
else
|
|
127
|
+
__rvm_log "error" "No gem set file found."
|
|
128
|
+
return 1
|
|
124
129
|
fi
|
|
125
130
|
fi
|
|
126
131
|
|
|
127
|
-
mkdir -p "$rvm_gem_path/cache"
|
|
132
|
+
mkdir -p "$rvm_gem_path/cache" # Ensure the base cache dir is initialized.
|
|
128
133
|
|
|
129
134
|
if [[ -f "$rvm_file_name" ]] ; then
|
|
130
135
|
echo "Loading $rvm_file_name file..."
|
|
@@ -132,7 +137,9 @@ __rvm_gems_load() {
|
|
|
132
137
|
|
|
133
138
|
while read -r line
|
|
134
139
|
do # Keep this on 2nd line :(
|
|
135
|
-
#
|
|
140
|
+
#
|
|
141
|
+
# Parse the line
|
|
142
|
+
#
|
|
136
143
|
gem="$(echo $line | awk -F';' '{print $1}')"
|
|
137
144
|
gem_prefix="$(echo $line | awk -F';' '{print $2}')"
|
|
138
145
|
if match "$gem" "\.gem$" ; then
|
|
@@ -149,12 +156,15 @@ __rvm_gems_load() {
|
|
|
149
156
|
gem_file_name="$gem"
|
|
150
157
|
elif match "$gem" ".gem$" ; then
|
|
151
158
|
gem_file_name="$gem"
|
|
152
|
-
elif [[ -z "${gem_version/ /}" ]] ; then # no
|
|
159
|
+
elif [[ -z "${gem_version/ /}" ]] ; then # no v/Users/wayne/projects/db0/rvm/scripts/gems
|
|
153
160
|
gem_file_name="${gem_name/ /}*.gem"
|
|
154
161
|
else # version
|
|
155
162
|
gem_file_name="${gem_name/ /}-${gem_version/ /}.gem"
|
|
156
163
|
fi
|
|
157
164
|
|
|
165
|
+
#
|
|
166
|
+
# Evaluate
|
|
167
|
+
#
|
|
158
168
|
if [[ -z "$rvm_force_flag" ]] && [[ -f "${rvm_ruby_gem_home}/specifications/${gem_file_name}spec" ]] ; then
|
|
159
169
|
unset gem
|
|
160
170
|
__rvm_log "warn" "$(__color "yellow")$gem_name $gem_version$(__color "none") exists, skipping (--force to re-install)"
|
|
@@ -200,7 +210,16 @@ __rvm_gems_load() {
|
|
|
200
210
|
# TODO: Set vars if fourth field is non-empty (means that there are conditional statements to execute in the gem install line.
|
|
201
211
|
__rvm_make_flags
|
|
202
212
|
__rvm_log "info" "Installing $gem_name $gem_version..."
|
|
203
|
-
|
|
213
|
+
if [[ ! -z "$rvm_ruby_gem_home" ]] ; then
|
|
214
|
+
command="GEM_HOME='$rvm_ruby_gem_home' GEM_PATH='$rvm_ruby_gem_home' $gem_prefix $rvm_ruby_home/bin/gem install --no-rdoc --no-ri -q $gem $gem_postfix $vars"
|
|
215
|
+
else
|
|
216
|
+
if [[ ! -z "$rvm_ruby_home" ]] ; then
|
|
217
|
+
command="$gem_prefix $rvm_ruby_home/bin/gem install --no-rdoc --no-ri -q $gem $gem_postfix $vars"
|
|
218
|
+
else
|
|
219
|
+
command="$gem_prefix gem install --no-rdoc --no-ri -q $gem $gem_postfix $vars"
|
|
220
|
+
fi
|
|
221
|
+
fi
|
|
222
|
+
if [[ -f "$gem" ]] ; then command="${command} -l" ; fi
|
|
204
223
|
eval $command > /dev/null 2>&1
|
|
205
224
|
result=$?
|
|
206
225
|
if [[ $result -eq 0 ]] ; then
|
data/scripts/install
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
3
|
rc_files="$HOME/.bash_profile $HOME/.bashrc $HOME/.zshrc"
|
|
4
|
+
if [[ -f "/etc/rvmrc" ]] ; then source "/etc/rvmrc" ; fi
|
|
4
5
|
if [[ "root" = "$(whoami)" ]] ; then
|
|
5
|
-
rvm_path
|
|
6
|
+
rvm_path="${rvm_path:-/usr/local/rvm}"
|
|
6
7
|
rc_files="$rc_files /etc/profile /etc/zshenv"
|
|
7
8
|
else
|
|
8
|
-
|
|
9
|
+
if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi
|
|
10
|
+
rvm_path="${rvm_path:-$HOME/.rvm}"
|
|
9
11
|
fi
|
|
10
12
|
|
|
11
13
|
#
|
|
@@ -73,19 +75,19 @@ if [[ "Linux" = "$system" ]] ; then
|
|
|
73
75
|
|
|
74
76
|
if [[ ! -z "$rvm_apt_get_binary" ]] ; then
|
|
75
77
|
echo -e " $item For jRuby (if you wish to use it) you will need:"
|
|
76
|
-
echo -e " $
|
|
78
|
+
echo -e " $ aptitude install sun-java6-bin sun-java6-jre sun-java6-jdk"
|
|
77
79
|
echo -e " $item For ree (if you wish to use it) you will need:"
|
|
78
|
-
echo -e " $
|
|
80
|
+
echo -e " $ aptitude install libreadline5-dev libssl-dev bison"
|
|
79
81
|
echo -e " $item For 1.9.X (if you wish to use it) we additionally recommend:"
|
|
80
|
-
echo -e " $
|
|
82
|
+
echo -e " $ aptitude install libxml2-dev"
|
|
81
83
|
|
|
82
84
|
elif [[ ! -z "$rvm_emerge_binary" ]] ; then
|
|
83
85
|
echo -e " $item For jRuby (if you wish to use it) you will need:"
|
|
84
|
-
echo -e " $
|
|
86
|
+
echo -e " $ emerge dev-java/sun-jdk dev-java/sun-jre-bin"
|
|
85
87
|
|
|
86
88
|
elif [[ ! -z "$rvm_pacman_binary" ]] ; then
|
|
87
89
|
echo -e " $item For jRuby (if you wish to use it) you will need:"
|
|
88
|
-
echo -e " $
|
|
90
|
+
echo -e " $ pacman -Sy jdk jre"
|
|
89
91
|
|
|
90
92
|
elif [[ ! -z "$rvm_yum_binary" ]] ; then
|
|
91
93
|
echo -e " $item For ree (if you wish to use it) you will need:"
|
data/scripts/ruby-installer
CHANGED
|
@@ -120,7 +120,6 @@ __rvm_install_ruby() {
|
|
|
120
120
|
|
|
121
121
|
if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select $* ; fi
|
|
122
122
|
if [[ ! -z "$RUBYOPT" ]] ; then ruby_options="$RUBYOPT" ; unset RUBYOPT ; fi
|
|
123
|
-
__rvm_make_flags
|
|
124
123
|
|
|
125
124
|
case "$rvm_ruby_interpreter" in
|
|
126
125
|
macruby)
|
|
@@ -141,7 +140,7 @@ __rvm_install_ruby() {
|
|
|
141
140
|
rvm_url="$(__rvm_db "macruby_nightly_url")"
|
|
142
141
|
__rvm_log "info" "Retrieving the latest nightly macruby build..."
|
|
143
142
|
__rvm_fetch "$rvm_url"
|
|
144
|
-
mv "$rvm_archives_path/latest" "$rvm_archives_path/macruby_nightly.pkg"
|
|
143
|
+
mv "$rvm_archives_path/macruby_nightly-latest.pkg" "$rvm_archives_path/macruby_nightly.pkg"
|
|
145
144
|
__rvm_run "macruby/extract" "sudo installer -pkg '$rvm_path/archives/macruby_nightly.pkg' -target '/'"
|
|
146
145
|
mkdir -p "$rvm_ruby_home/bin"
|
|
147
146
|
fi
|
|
@@ -225,6 +224,7 @@ RubyWrapper
|
|
|
225
224
|
result=1
|
|
226
225
|
else
|
|
227
226
|
rvm_ruby_repo_url=$rvm_url
|
|
227
|
+
__rvm_make_flags
|
|
228
228
|
__rvm_install_source $*
|
|
229
229
|
fi
|
|
230
230
|
fi
|
|
@@ -235,6 +235,7 @@ RubyWrapper
|
|
|
235
235
|
# prereqs, 1.8.6+ + rake. Yes this could all be one line... not pushing our luck.
|
|
236
236
|
echo "$(export rvm_install_on_use_flag=1 ; rvm 1.8.7)" # This should install if missing.
|
|
237
237
|
# TODO: use 'rvm gems load' here:
|
|
238
|
+
unset CFLAGS LDFLAGS ARCHFLAGS # Important.
|
|
238
239
|
__rvm_unset_ruby_variables ; rvm_ruby_string="rbx-head" ; __rvm_select
|
|
239
240
|
|
|
240
241
|
unset GEM_HOME GEM_PATH MY_RUBY_HOME IRBRC
|
|
@@ -402,6 +403,7 @@ RubyWrapper
|
|
|
402
403
|
;;
|
|
403
404
|
|
|
404
405
|
mput|shyouhei)
|
|
406
|
+
__rvm_make_flags
|
|
405
407
|
unset GEM_HOME GEM_PATH MY_RUBY_HOME IRBRC
|
|
406
408
|
PATH=$(echo $PATH | tr ':' '\n' | awk '$0 !~ /rvm/' | paste -sd : -)
|
|
407
409
|
PATH=$rvm_bin_path:$PATH ; export PATH
|
|
@@ -463,6 +465,7 @@ RubyWrapper
|
|
|
463
465
|
;;
|
|
464
466
|
|
|
465
467
|
ruby)
|
|
468
|
+
__rvm_make_flags
|
|
466
469
|
__rvm_install_source $*
|
|
467
470
|
;;
|
|
468
471
|
|
data/scripts/rvm-install
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
3
|
rc_files="$HOME/.bash_profile $HOME/.bashrc $HOME/.zshrc"
|
|
4
|
+
if [[ -f "/etc/rvmrc" ]] ; then source "/etc/rvmrc" ; fi
|
|
4
5
|
if [[ "root" = "$(whoami)" ]] ; then
|
|
5
|
-
rvm_path
|
|
6
|
+
rvm_path="${rvm_path:-/usr/local/rvm}"
|
|
6
7
|
rc_files="$rc_files /etc/profile /etc/zshenv"
|
|
7
8
|
else
|
|
8
|
-
|
|
9
|
+
if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi
|
|
10
|
+
rvm_path="${rvm_path:-$HOME/.rvm}"
|
|
9
11
|
fi
|
|
10
12
|
|
|
11
13
|
#
|
|
@@ -73,19 +75,19 @@ if [[ "Linux" = "$system" ]] ; then
|
|
|
73
75
|
|
|
74
76
|
if [[ ! -z "$rvm_apt_get_binary" ]] ; then
|
|
75
77
|
echo -e " $item For jRuby (if you wish to use it) you will need:"
|
|
76
|
-
echo -e " $
|
|
78
|
+
echo -e " $ aptitude install sun-java6-bin sun-java6-jre sun-java6-jdk"
|
|
77
79
|
echo -e " $item For ree (if you wish to use it) you will need:"
|
|
78
|
-
echo -e " $
|
|
80
|
+
echo -e " $ aptitude install libreadline5-dev libssl-dev bison"
|
|
79
81
|
echo -e " $item For 1.9.X (if you wish to use it) we additionally recommend:"
|
|
80
|
-
echo -e " $
|
|
82
|
+
echo -e " $ aptitude install libxml2-dev"
|
|
81
83
|
|
|
82
84
|
elif [[ ! -z "$rvm_emerge_binary" ]] ; then
|
|
83
85
|
echo -e " $item For jRuby (if you wish to use it) you will need:"
|
|
84
|
-
echo -e " $
|
|
86
|
+
echo -e " $ emerge dev-java/sun-jdk dev-java/sun-jre-bin"
|
|
85
87
|
|
|
86
88
|
elif [[ ! -z "$rvm_pacman_binary" ]] ; then
|
|
87
89
|
echo -e " $item For jRuby (if you wish to use it) you will need:"
|
|
88
|
-
echo -e " $
|
|
90
|
+
echo -e " $ pacman -Sy jdk jre"
|
|
89
91
|
|
|
90
92
|
elif [[ ! -z "$rvm_yum_binary" ]] ; then
|
|
91
93
|
echo -e " $item For ree (if you wish to use it) you will need:"
|
data/scripts/update
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
3
|
rc_files="$HOME/.bash_profile $HOME/.bashrc $HOME/.zshrc"
|
|
4
|
+
if [[ -f "/etc/rvmrc" ]] ; then source "/etc/rvmrc" ; fi
|
|
4
5
|
if [[ "root" = "$(whoami)" ]] ; then
|
|
5
|
-
rvm_path
|
|
6
|
+
rvm_path="${rvm_path:-/usr/local/rvm}"
|
|
6
7
|
rc_files="$rc_files /etc/profile /etc/zshenv"
|
|
7
8
|
else
|
|
8
|
-
|
|
9
|
+
if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi
|
|
10
|
+
rvm_path="${rvm_path:-$HOME/.rvm}"
|
|
9
11
|
fi
|
|
10
12
|
|
|
11
13
|
#
|
|
@@ -73,19 +75,19 @@ if [[ "Linux" = "$system" ]] ; then
|
|
|
73
75
|
|
|
74
76
|
if [[ ! -z "$rvm_apt_get_binary" ]] ; then
|
|
75
77
|
echo -e " $item For jRuby (if you wish to use it) you will need:"
|
|
76
|
-
echo -e " $
|
|
78
|
+
echo -e " $ aptitude install sun-java6-bin sun-java6-jre sun-java6-jdk"
|
|
77
79
|
echo -e " $item For ree (if you wish to use it) you will need:"
|
|
78
|
-
echo -e " $
|
|
80
|
+
echo -e " $ aptitude install libreadline5-dev libssl-dev bison"
|
|
79
81
|
echo -e " $item For 1.9.X (if you wish to use it) we additionally recommend:"
|
|
80
|
-
echo -e " $
|
|
82
|
+
echo -e " $ aptitude install libxml2-dev"
|
|
81
83
|
|
|
82
84
|
elif [[ ! -z "$rvm_emerge_binary" ]] ; then
|
|
83
85
|
echo -e " $item For jRuby (if you wish to use it) you will need:"
|
|
84
|
-
echo -e " $
|
|
86
|
+
echo -e " $ emerge dev-java/sun-jdk dev-java/sun-jre-bin"
|
|
85
87
|
|
|
86
88
|
elif [[ ! -z "$rvm_pacman_binary" ]] ; then
|
|
87
89
|
echo -e " $item For jRuby (if you wish to use it) you will need:"
|
|
88
|
-
echo -e " $
|
|
90
|
+
echo -e " $ pacman -Sy jdk jre"
|
|
89
91
|
|
|
90
92
|
elif [[ ! -z "$rvm_yum_binary" ]] ; then
|
|
91
93
|
echo -e " $item For ree (if you wish to use it) you will need:"
|
data/scripts/utility
CHANGED
|
@@ -130,7 +130,7 @@ __rvm_run() {
|
|
|
130
130
|
|
|
131
131
|
__rvm_cleanup_variables() {
|
|
132
132
|
__rvm_unset_ruby_variables
|
|
133
|
-
unset rvm_ruby_selected_flag rvm_action rvm_irbrc_file rvm_src_path rvm_path rvm_prefix_path rvm_gem_path rvm_command rvm_error_message rvm_gem_set_name rvm_url rvm_config_path rvm_bin_path rvm_force_flag rvm_all_flag rvm_reconfigure_flag rvm_make_flags rvm_bin_flag rvm_load_flag rvm_dump_flag rvm_self_flag rvm_gem_flag rvm_rubygems_flag rvm_debug_flag rvm_delete_flag rvm_summary_flag rvm_test_flag _rvm_spec_flag rvm_json_flag rvm_yaml_flag rvm_shebang_flag rvm_env_flag rvm_tail_flag rvm_use_flag rvm_dir_flag rvm_list_flag rvm_empty_flag rvm_log_path rvm_file_name rvm_benchmark_flag rvm_clear_flag rvm_name_flag rvm_verbose_flag rvm_user_flag rvm_system_flag rvm_ruby_configure_flags
|
|
133
|
+
unset rvm_ruby_selected_flag rvm_action rvm_irbrc_file rvm_src_path rvm_path rvm_prefix_path rvm_gem_path rvm_command rvm_error_message rvm_gem_set_name rvm_url rvm_config_path rvm_bin_path rvm_force_flag rvm_all_flag rvm_reconfigure_flag rvm_make_flags rvm_bin_flag rvm_load_flag rvm_dump_flag rvm_self_flag rvm_gem_flag rvm_rubygems_flag rvm_debug_flag rvm_delete_flag rvm_summary_flag rvm_test_flag _rvm_spec_flag rvm_json_flag rvm_yaml_flag rvm_shebang_flag rvm_env_flag rvm_tail_flag rvm_use_flag rvm_dir_flag rvm_list_flag rvm_empty_flag rvm_log_path rvm_file_name rvm_benchmark_flag rvm_clear_flag rvm_name_flag rvm_verbose_flag rvm_user_flag rvm_system_flag rvm_ruby_configure_flags CFLAGS LDFLAGS ARCHFLAGS
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
__rvm_unset_ruby_variables() {
|
|
@@ -338,6 +338,7 @@ __rvm_gemdup() {
|
|
|
338
338
|
__rvm_gem_sync() {
|
|
339
339
|
if [[ ! -z "$rvm_source_gem_path" ]] ; then
|
|
340
340
|
for rvm_gem_name_version in $rvm_source_gem_path/gems/* ; do
|
|
341
|
+
rvm_gem_name_version=$(basename $rvm_gem_name_version)
|
|
341
342
|
rvm_gem_name="${rvm_gem_name_version%-*}"
|
|
342
343
|
rvm_gem_version="${rvm_gem_name_version##*-}"
|
|
343
344
|
if [[ -d $GEM_HOME/gems/$rvm_gem_name_version ]] ; then
|
|
@@ -572,7 +573,7 @@ __rvm_reboot() {
|
|
|
572
573
|
fi
|
|
573
574
|
gem install rvm --no-rdoc --no-ri -q
|
|
574
575
|
__rvm_update_rvm
|
|
575
|
-
source
|
|
576
|
+
source $rvm_path/scripts/rvm
|
|
576
577
|
else
|
|
577
578
|
__rvm_log "info" "Carry on then..."
|
|
578
579
|
fi ; unset response
|
|
@@ -637,13 +638,13 @@ __rvm_do() {
|
|
|
637
638
|
unset rvm_ruby_string rvm_ruby_version
|
|
638
639
|
__rvm_ruby_do
|
|
639
640
|
else # all
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
if [[ -x "$
|
|
643
|
-
rvm_ruby_string="$(dirname $
|
|
641
|
+
rubies=($(\ls $rvm_path/*/bin/ruby))
|
|
642
|
+
for full_binary in ${rubies[@]} ; do
|
|
643
|
+
if [[ -x "$full_binary" ]] ; then
|
|
644
|
+
rvm_ruby_string="$(dirname $full_binary | xargs dirname | xargs basename)"
|
|
644
645
|
__rvm_ruby_do
|
|
645
646
|
fi
|
|
646
|
-
done
|
|
647
|
+
done ; unset full_binary rubies
|
|
647
648
|
fi
|
|
648
649
|
|
|
649
650
|
if [[ ! -z "$rvm_summary_flag" ]] ; then __rvm_summary ; fi
|
|
@@ -876,7 +877,9 @@ __rvm_make_flags() {
|
|
|
876
877
|
# ls /usr/lib/gcc/i686-apple-darwin10
|
|
877
878
|
|
|
878
879
|
# Set the build & host type
|
|
879
|
-
if [[ $(sysctl hw.
|
|
880
|
+
if [[ "Power Macintosh" = "$(sysctl hw.machine | awk -F: '{print $2}' | sed 's/^ //')" ]] ; then
|
|
881
|
+
: # Do nothing ?
|
|
882
|
+
elif [[ $(sysctl hw.cpu64bit_capable | awk '{print $2}') = 1 ]] ; then # we could also use: sysctl hw.optional.x86_64
|
|
880
883
|
# 64 bit capable
|
|
881
884
|
if [[ "-arch x86_64" = "$rvm_archflags" ]] ; then
|
|
882
885
|
rvm_ruby_configure_flags="${rvm_ruby_configure_flags} --build=i686-apple-darwin$(uname -r) --host=i686-apple-darwin$(uname -r)"
|
|
@@ -891,13 +894,15 @@ __rvm_make_flags() {
|
|
|
891
894
|
if [[ -z "$rvm_archflags" ]] ; then rvm_archflags="-arch i386" ; fi
|
|
892
895
|
rvm_ruby_configure_flags="${rvm_ruby_configure_flags} --build=i386-apple-darwin$(uname -r) --host=i386-apple-darwin$(uname -r)"
|
|
893
896
|
fi
|
|
894
|
-
ARCHFLAGS="$rvm_archflags" ; export ARCHFLAGS
|
|
895
897
|
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
898
|
+
if [[ ! -z "$rvm_archflags" ]] ; then
|
|
899
|
+
ARCHFLAGS="$rvm_archflags" ; export ARCHFLAGS
|
|
900
|
+
# Use the latest sdk available.
|
|
901
|
+
if [[ -z "$rvm_sdk" ]] ; then rvm_sdk="$(basename -a /Developer/SDKs/* | awk '/^M/' | sort | tail -n 1)" ; fi
|
|
902
|
+
CFLAGS="-isysroot /Developer/SDKs/$rvm_sdk $rvm_archflags" ; export CFLAGS
|
|
903
|
+
LDFLAGS="-Wl,-syslibroot /Developer/SDKs/$rvm_sdk $rvm_archflags" ; export LDFLAGS
|
|
904
|
+
# CXXFLAGS="-mmacosx-version-min="$(sw_vers -productVersion | awk -F'.' '{print $1"."$2}')" -isysroot /Developer/SDKs/$rvm_sdk " ; export CXXFLAGS
|
|
905
|
+
fi
|
|
901
906
|
fi
|
|
902
907
|
}
|
|
903
908
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rvm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.79
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wayne E. Seguin
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-11-
|
|
12
|
+
date: 2009-11-18 00:00:00 -05:00
|
|
13
13
|
default_executable: rvm-install
|
|
14
14
|
dependencies: []
|
|
15
15
|
|