summaryrefslogtreecommitdiff
path: root/instruby.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-01-27 08:08:39 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-01-27 08:08:39 +0000
commit1f25ed85a9a066ecff452df1512a42de04666053 (patch)
treef9c619a2977e62b8f4ef34281fa845aee33dbc5c /instruby.rb
parentceb8031b6b795b189012c38057ebf82733f4aeaf (diff)
990127
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'instruby.rb')
-rw-r--r--instruby.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/instruby.rb b/instruby.rb
index 1c2610a..ec79c6c 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