summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rwxr-xr-xtool/rbinstall.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 399ca67559..6bfc73e0d1 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -241,7 +241,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
@@ -443,7 +443,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 = ''