Project

General

Profile

Bug #15407 ยป rbinstall.diff

jeremyevans0 (Jeremy Evans), 12/13/2018 12:33 AM

View differences:

tool/rbinstall.rb Wed Dec 12 16:31:53 2018
def install(src, cmd)
cmd = cmd.sub(/[^\/]*\z/m) {|n| RbConfig.expand(trans[n])}
exe_install(src, cmd)
end
def exe_install(src, cmd)
shebang, body = open(src, "rb") do |f|
next f.gets, f.read
end
......
makedirs(bin_dir)
gemspec.executables.map {|exec|
$script_installer.install(File.join(srcdir, 'libexec', exec),
File.join(bin_dir, exec))
$script_installer.exe_install(File.join(srcdir, 'libexec', exec),
File.join(bin_dir, exec))
}
end
end
    (1-1/1)