summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb4
1 files changed, 2 insertions, 2 deletions
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 = ''