summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--bin/irb (renamed from sample/irb.rb)0
-rw-r--r--instruby.rb8
3 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a661e7..b03ac46 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Tue Nov 19 01:53:35 2002 Akinori MUSHA <knu@iDaemons.org>
+
+ * bin/irb: Moved from sample/irb.rb.
+
+ * instruby.rb: Install script files under bin/ with ruby's program
+ prefix and suffix.
+
Mon Nov 18 02:13:36 2002 Akinori MUSHA <knu@iDaemons.org>
* lib/tempfile.rb: Make this libary thread safe.
diff --git a/sample/irb.rb b/bin/irb
index 58f3699..58f3699 100644
--- a/sample/irb.rb
+++ b/bin/irb
diff --git a/instruby.rb b/instruby.rb
index 8ab84ad..6449298 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