summaryrefslogtreecommitdiff
path: root/instruby.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-24 03:12:27 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-24 03:12:27 +0000
commit4f7c94a8b9cb99756fcb4213360beb5327e66a00 (patch)
tree9cc8ede7965b3fe704a57ca72a4f80478ace91b6 /instruby.rb
parentc31dcc79b52c1ee5d414d6fd487ea427bd66afd7 (diff)
* instruby.rb: install *.exe.manifest and *.dll.manifest if exist.
It's for VC++8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'instruby.rb')
-rw-r--r--instruby.rb47
1 files changed, 29 insertions, 18 deletions
diff --git a/instruby.rb b/instruby.rb
index be011d46ab..1237b01abc 100644
--- a/instruby.rb
+++ b/instruby.rb
@@ -109,29 +109,40 @@ arc = CONFIG["LIBRUBY_A"]
makedirs [bindir, libdir, rubylibdir, archlibdir, sitelibdir, sitearchlibdir]
install?(:bin) do
-ruby_bin = File.join(bindir, ruby_install_name)
+ ruby_bin = File.join(bindir, ruby_install_name)
-install ruby_install_name+exeext, ruby_bin+exeext, :mode => 0755
-if rubyw_install_name and !rubyw_install_name.empty?
- install rubyw_install_name+exeext, bindir, :mode => 0755
-end
-install dll, bindir, :mode => 0755 if enable_shared and dll != lib
-install lib, libdir, :mode => 0755 unless lib == arc
-install arc, libdir, :mode => 0644
-install "config.h", archlibdir, :mode => 0644
-install "rbconfig.rb", archlibdir, :mode => 0644
-if CONFIG["ARCHFILE"]
- for file in CONFIG["ARCHFILE"].split
- install file, archlibdir, :mode => 0644
+ install ruby_install_name+exeext, ruby_bin+exeext, :mode => 0755
+ if File.exist?(ruby_install_name+exeext+".manifest")
+ install ruby_install_name+exeext+".manifest", bindir, :mode => 0644
+ end
+ if rubyw_install_name and !rubyw_install_name.empty?
+ install rubyw_install_name+exeext, bindir, :mode => 0755
+ if File.exist?(rubyw_install_name+exeext+".manifest")
+ install rubyw_install_name+exeext+".manifest", bindir, :mode => 0644
+ end
+ end
+ if enable_shared and dll != lib
+ install dll, bindir, :mode => 0755
+ if File.exist?(dll+".manifest")
+ install dll+".manifest", bindir, :mode => 0644
+ end
+ end
+ install lib, libdir, :mode => 0755 unless lib == arc
+ install arc, libdir, :mode => 0644
+ install "config.h", archlibdir, :mode => 0644
+ install "rbconfig.rb", archlibdir, :mode => 0644
+ if CONFIG["ARCHFILE"]
+ for file in CONFIG["ARCHFILE"].split
+ install file, archlibdir, :mode => 0644
+ end
end
-end
-if dll == lib and dll != arc
- for link in CONFIG["LIBRUBY_ALIASES"].split
- ln_sf(dll, File.join(libdir, link))
+ if dll == lib and dll != arc
+ for link in CONFIG["LIBRUBY_ALIASES"].split
+ ln_sf(dll, File.join(libdir, link))
+ end
end
end
-end
Dir.chdir srcdir