autoproj 1.9.7.rc4 → 1.9.7.rc5
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/autoproj_bootstrap +1 -1
- data/lib/autoproj/cmdline.rb +7 -6
- data/lib/autoproj/default.osdeps +1 -1
- data/lib/autoproj/version.rb +1 -1
- metadata +1 -1
data/bin/autoproj_bootstrap
CHANGED
data/lib/autoproj/cmdline.rb
CHANGED
@@ -58,7 +58,7 @@ module Autoproj
|
|
58
58
|
Autoproj.change_option('ruby_executable', ruby_executable, true)
|
59
59
|
|
60
60
|
install_suffix = ""
|
61
|
-
if match = /ruby(.*)$/.match(
|
61
|
+
if match = /ruby(.*)$/.match(RbConfig::CONFIG['RUBY_INSTALL_NAME'])
|
62
62
|
install_suffix = match[1]
|
63
63
|
end
|
64
64
|
|
@@ -68,7 +68,7 @@ module Autoproj
|
|
68
68
|
|
69
69
|
File.open(File.join(bindir, 'ruby'), 'w') do |io|
|
70
70
|
io.puts "#! /bin/sh"
|
71
|
-
io.puts "exec #{
|
71
|
+
io.puts "exec #{ruby_executable} \"$@\""
|
72
72
|
end
|
73
73
|
FileUtils.chmod 0755, File.join(bindir, 'ruby')
|
74
74
|
|
@@ -77,7 +77,7 @@ module Autoproj
|
|
77
77
|
prg_name = "#{name}#{install_suffix}"
|
78
78
|
if File.file?(prg_path = File.join(ruby_bindir, prg_name))
|
79
79
|
File.open(File.join(bindir, name), 'w') do |io|
|
80
|
-
io.puts "#! #{
|
80
|
+
io.puts "#! #{ruby_executable}"
|
81
81
|
io.puts "exec \"#{prg_path}\", *ARGV"
|
82
82
|
end
|
83
83
|
FileUtils.chmod 0755, File.join(bindir, name)
|
@@ -209,6 +209,8 @@ module Autoproj
|
|
209
209
|
def self.update_myself
|
210
210
|
return if !Autoproj::CmdLine.update_os_dependencies?
|
211
211
|
|
212
|
+
handle_ruby_version
|
213
|
+
|
212
214
|
# This is a guard to avoid infinite recursion in case the user is
|
213
215
|
# running autoproj osdeps --force
|
214
216
|
if ENV['AUTOPROJ_RESTARTING'] == '1'
|
@@ -227,11 +229,10 @@ module Autoproj
|
|
227
229
|
Autoproj.save_config
|
228
230
|
ENV['AUTOPROJ_RESTARTING'] = '1'
|
229
231
|
require 'rbconfig'
|
230
|
-
ruby = RbConfig::CONFIG['RUBY_INSTALL_NAME']
|
231
232
|
if defined?(ORIGINAL_ARGV)
|
232
|
-
exec(
|
233
|
+
exec(ruby_executable, $0, *ORIGINAL_ARGV)
|
233
234
|
else
|
234
|
-
exec(
|
235
|
+
exec(ruby_executable, $0, *ARGV)
|
235
236
|
end
|
236
237
|
end
|
237
238
|
end
|
data/lib/autoproj/default.osdeps
CHANGED
data/lib/autoproj/version.rb
CHANGED