From: "T. Onoma" Date: 2004-08-28T07:45:42+09:00 Subject: Re: Install to bin dir? On Friday 27 August 2004 06:09 pm, Mauricio Fern�ndez wrote: > On Sat, Aug 28, 2004 at 06:33:31AM +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? > > require 'rbconfig' > require 'ftools' > destdir = Config::CONFIG["destdir"] > # ... > exec_files.each do |f| > File.install f, File.join(destdir, File.basename(f)), 0755 > end > > > If you're following the 'standard' source layout (lib/, bin/, etc), > I suggest you use setup.rb from Aoki Minero: that way all you have to > do is copy setup.rb into your source dir, period (in most cases at least). Now you tell me! ;) -- T.