Skip to content

Commit

Permalink
* bin/irb: Moved from sample/irb.rb.
Browse files Browse the repository at this point in the history
* instruby.rb: Install script files under bin/ with ruby's program
  prefix and suffix.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
knu committed Nov 18, 2002
1 parent 734665d commit c04ef93
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Tue Nov 19 01:53:35 2002 Akinori MUSHA <[email protected]>

* 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 <[email protected]>

* lib/tempfile.rb: Make this libary thread safe.
Expand Down
File renamed without changes.
8 changes: 7 additions & 1 deletion instruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ def makelink(orig, link, verbose = false)

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
Expand Down

0 comments on commit c04ef93

Please sign in to comment.