diff options
author | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-01-27 08:08:39 +0000 |
---|---|---|
committer | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-01-27 08:08:39 +0000 |
commit | 3a61037bc8ece561385b752d21e75e4f755a211e (patch) | |
tree | f9c619a2977e62b8f4ef34281fa845aee33dbc5c /instruby.rb | |
parent | 62e648e148b3cb9f96dcce808c55c02b7ccb4486 (diff) |
This commit was manufactured by cvs2svn to create tag
'v1_3_1_990127'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_3_1_990127@381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'instruby.rb')
-rw-r--r-- | instruby.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/instruby.rb b/instruby.rb index d489e0f838..ec79c6cb56 100644 --- a/instruby.rb +++ b/instruby.rb @@ -29,11 +29,23 @@ for dll in Dir['*.dll'] File.install dll, "#{destdir}#{bindir}/#{dll}", 0755, true end File.makedirs "#{destdir}#{libdir}", true -for lib in ["libruby.so", "libruby.so.LIB"] +for lib in ["libruby.so.LIB", CONFIG["LIBRUBY_SO"]] if File.exist? lib File.install lib, "#{destdir}#{libdir}", 0644, true end end +pwd = Dir.pwd +Dir.chdir libdir +if File.exist? CONFIG["LIBRUBY_SO"] + for link in CONFIG["LIBRUBY_ALIASES"].split + if File.exist? link + File.delete link + end + File.symlink CONFIG["LIBRUBY_SO"], link + print "link #{CONFIG['LIBRUBY_SO']} -> #{link}\n" + end +end +Dir.chdir pwd File.makedirs "#{destdir}#{pkglibdir}", true File.makedirs "#{destdir}#{archdir}", true Dir.chdir "ext" @@ -47,7 +59,7 @@ File.makedirs(archdir,true) for f in Dir["*.h"] File.install f, "#{destdir}#{archdir}", 0644, true end -File.install "libruby.a", "#{destdir}#{archdir}", 0644, true +File.install CONFIG['LIBRUBY_A'], "#{destdir}#{archdir}", 0644, true File.makedirs "#{destdir}#{mandir}", true File.install "ruby.1", "#{destdir}#{mandir}", 0644, true |