From 1f25ed85a9a066ecff452df1512a42de04666053 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 27 Jan 1999 08:08:39 +0000 Subject: 990127 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- instruby.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'instruby.rb') diff --git a/instruby.rb b/instruby.rb index 1c2610a59a..ec79c6cb56 100644 --- a/instruby.rb +++ b/instruby.rb @@ -37,12 +37,13 @@ end pwd = Dir.pwd Dir.chdir libdir if File.exist? CONFIG["LIBRUBY_SO"] - for alias in [CONFIG["LIBRUBY_SO"]] - if File.exist? alias - File.delete alias + for link in CONFIG["LIBRUBY_ALIASES"].split + if File.exist? link + File.delete link end - File.symlink CONFIG["LIBRUBY_SO"], alias - print "link #{CONFIG['LIBRUBY_SO']} -> #{alias}\n" + File.symlink CONFIG["LIBRUBY_SO"], link + print "link #{CONFIG['LIBRUBY_SO']} -> #{link}\n" + end end Dir.chdir pwd File.makedirs "#{destdir}#{pkglibdir}", true @@ -58,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