mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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/trunk@9997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
20f3ea3f6c
commit
6f43cc18a4
2 changed files with 34 additions and 18 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Feb 24 12:10:07 2006 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* instruby.rb: install *.exe.manifest and *.dll.manifest if exist.
|
||||||
|
It's for VC++8.
|
||||||
|
|
||||||
Fri Feb 24 11:17:45 2006 NAKAMURA Usaku <usa@ruby-lang.org>
|
Fri Feb 24 11:17:45 2006 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* win32/win32.c (NtInitialize): need to set a handler for VC++8.
|
* win32/win32.c (NtInitialize): need to set a handler for VC++8.
|
||||||
|
|
47
instruby.rb
47
instruby.rb
|
@ -109,29 +109,40 @@ arc = CONFIG["LIBRUBY_A"]
|
||||||
makedirs [bindir, libdir, rubylibdir, archlibdir, sitelibdir, sitearchlibdir]
|
makedirs [bindir, libdir, rubylibdir, archlibdir, sitelibdir, sitearchlibdir]
|
||||||
|
|
||||||
install?(:bin) do
|
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
|
install ruby_install_name+exeext, ruby_bin+exeext, :mode => 0755
|
||||||
if rubyw_install_name and !rubyw_install_name.empty?
|
if File.exist?(ruby_install_name+exeext+".manifest")
|
||||||
install rubyw_install_name+exeext, bindir, :mode => 0755
|
install ruby_install_name+exeext+".manifest", bindir, :mode => 0644
|
||||||
end
|
end
|
||||||
install dll, bindir, :mode => 0755 if enable_shared and dll != lib
|
if rubyw_install_name and !rubyw_install_name.empty?
|
||||||
install lib, libdir, :mode => 0755 unless lib == arc
|
install rubyw_install_name+exeext, bindir, :mode => 0755
|
||||||
install arc, libdir, :mode => 0644
|
if File.exist?(rubyw_install_name+exeext+".manifest")
|
||||||
install "config.h", archlibdir, :mode => 0644
|
install rubyw_install_name+exeext+".manifest", bindir, :mode => 0644
|
||||||
install "rbconfig.rb", archlibdir, :mode => 0644
|
end
|
||||||
if CONFIG["ARCHFILE"]
|
end
|
||||||
for file in CONFIG["ARCHFILE"].split
|
if enable_shared and dll != lib
|
||||||
install file, archlibdir, :mode => 0644
|
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
|
||||||
end
|
|
||||||
|
|
||||||
if dll == lib and dll != arc
|
if dll == lib and dll != arc
|
||||||
for link in CONFIG["LIBRUBY_ALIASES"].split
|
for link in CONFIG["LIBRUBY_ALIASES"].split
|
||||||
ln_sf(dll, File.join(libdir, link))
|
ln_sf(dll, File.join(libdir, link))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
Dir.chdir srcdir
|
Dir.chdir srcdir
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue