diff --git a/ChangeLog b/ChangeLog index db787712d8..e7c519d23c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 2 23:47:58 2012 Nobuyoshi Nakada + + * tool/rbinstall.rb (install_recursive, bin-comm): split mere + string not path name. [ruby-core:40462] [Bug #5492] + Mon Jan 2 23:41:57 2012 Tajima Akil * win32/Makefile.sub (CONFIG_H): have stdint.h if VC2010. diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index cec8c9f132..8179f9f651 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -239,7 +239,7 @@ def install_recursive(srcdir, dest, options = {}) if dir makedirs(d) else - makedirs(File.dirname(d)) + makedirs(d[/.*(?=\/)/m]) if block_given? yield src, d, opts else @@ -441,7 +441,7 @@ install?(:local, :comm, :bin, :'bin-comm') do trans = proc {|base| base} end install_recursive(File.join(srcdir, "bin"), bindir) do |src, cmd| - cmd = File.join(File.dirname(cmd), RbConfig.expand(trans[File.basename(cmd)])) + cmd = cmd.sub(/[^\/]*\z/m) {|n| RbConfig.expand(trans[n])} shebang = '' body = '' diff --git a/version.h b/version.h index b629db1fee..619f7e43db 100644 --- a/version.h +++ b/version.h @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.3" -#define RUBY_PATCHLEVEL 15 +#define RUBY_PATCHLEVEL 16 #define RUBY_RELEASE_DATE "2012-01-03" #define RUBY_RELEASE_YEAR 2012