From 3a61037bc8ece561385b752d21e75e4f755a211e Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Wed, 27 Jan 1999 08:08:39 +0000 Subject: 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 --- instruby.rb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'instruby.rb') 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 -- cgit v1.2.3