From: Chad Fowler Date: 2004-08-28T06:38:22+09:00 Subject: Re: Install to bin dir? On Sat, 28 Aug 2004 06:33:31 +0900, T. Onoma wrote: > I know there's probably a ready made solution for this. And I know its been > done ten thousand times before. That's exactly why I'll just ask rather then > reinvent the wheel. > > I have an install.rb script which works fine for lib files, but does nothing > for bin files. Anyone have a good code snip for determining where to put bin > files during installation? > > Quite easy with RubyGems: http://rubygems.rubyforge.org/wiki/wiki.pl?CreateAGemInTenMinutes (specifically look at bindir and executables in the gem spec). Alternatively, look in RubyGems' install.rb for the part that creates binary stubs to see how we determine the bin directory. Chad