summaryrefslogtreecommitdiffstats
path: root/instruby.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-18 16:57:36 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-18 16:57:36 +0000
commit50a9d1db259e5ab7d952317f1c2208f393753fc4 (patch)
treeb35d951d6831319efeac6b2b5bc9aacd9dc2d399 /instruby.rb
parent95e76f1a2f358684591c4416a8547ac269d265f1 (diff)
downloadruby-50a9d1db259e5ab7d952317f1c2208f393753fc4.tar.gz
ruby-50a9d1db259e5ab7d952317f1c2208f393753fc4.tar.xz
ruby-50a9d1db259e5ab7d952317f1c2208f393753fc4.zip
* bin/irb: Moved from sample/irb.rb.
* instruby.rb: Install script files under bin/ with ruby's program prefix and suffix. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'instruby.rb')
-rw-r--r--instruby.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/instruby.rb b/instruby.rb
index 8ab84ad93..6449298b0 100644
--- a/instruby.rb
+++ b/instruby.rb
@@ -98,7 +98,13 @@ end
Dir.chdir CONFIG["srcdir"]
-Installer.install "sample/irb.rb", "#{bindir}/irb", 0755, true
+for f in Dir["bin/*"]
+ next unless File.file?(f)
+
+ name = ruby_install_name.sub(/ruby/, File.basename(f))
+
+ Installer.install f, File.join(bindir, name), 0755, true
+end
Dir.glob("lib/**/*{.rb,help-message}") do |f|
dir = File.dirname(f).sub!(/\Alib/, rubylibdir) || rubylibdir