diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-07-28 09:26:53 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-07-28 09:26:53 +0000 |
commit | 16adedaa6d6ceb8e3f21e33dc6653aed3ffa6932 (patch) | |
tree | d1c104d8b5e197b22830a2c37f84327de76586b3 /instruby.rb | |
parent | 7dcd244615f172994ca4af37108af7ff744d0998 (diff) |
990728
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'instruby.rb')
-rw-r--r-- | instruby.rb | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/instruby.rb b/instruby.rb index 78b3afaeae..52c7c2397f 100644 --- a/instruby.rb +++ b/instruby.rb @@ -9,7 +9,7 @@ $:.unshift CONFIG["srcdir"]+"/lib" require "ftools" require "find" -binsuffix = CONFIG["binsuffix"] +exeext = CONFIG["EXEEXT"] if ENV["prefix"] prefix = ENV["prefix"] else @@ -25,8 +25,8 @@ mandir = destdir+CONFIG["mandir"] + "/man1" wdir = Dir.getwd File.makedirs bindir, true -File.install ruby_install_name+binsuffix, - "#{bindir}/#{ruby_install_name}#{binsuffix}", 0755, true +File.install ruby_install_name+exeext, + "#{bindir}/#{ruby_install_name}#{exeext}", 0755, true for dll in Dir['*.dll'] File.install dll, "#{bindir}/#{dll}", 0755, true end @@ -61,7 +61,7 @@ if RUBY_PLATFORM =~ /-aix/ end Dir.chdir "ext" -system "../miniruby#{binsuffix} extmk.rb install #{destdir}" +system "../miniruby#{exeext} extmk.rb install #{destdir}" Dir.chdir CONFIG["srcdir"] Find.find("lib") do |f| @@ -74,6 +74,13 @@ end for f in Dir["*.h"] File.install f, archdir, 0644, true end +if RUBY_PLATFORM =~ /mswin32/ + File.makedirs archdir + "/win32", true + File.install "win32/win32.h", archdir + "/win32", 0644, true + if File.exist? wdir+'/rubymw.lib' + File.install wdir+'/rubymw.lib', archdir, 0644, true + end +end File.install wdir+'/'+CONFIG['LIBRUBY_A'], archdir, 0644, true File.makedirs mandir, true |