[Rubygems-developers] Shell scripts into bindir

Curt Hibbs curt.hibbs at gmail.com
Fri Oct 27 07:04:01 EDT 2006


On 10/27/06, Chad Fowler <chad at chadfowler.com> wrote:
>
> On 10/26/06, Curt Hibbs <curt.hibbs at gmail.com> wrote:
> > On 10/26/06, Chad Fowler <chad at chadfowler.com> wrote:
> > > On 10/26/06, Imobach González Sosa <imobachgs at gmail.com> wrote:
> > > > Hi all,
> > > >
> > > > I'm trying to package a friend's applications with as a "gem" and I
> > facing
> > > > a "little" problem that I don't know how to solve.
> > > >
> > > > The problem is that this application have a shell script that must
> be
> > > > installed into "/usr/local/bin" directory. But if I include that
> script
> > > > into "executables", rubygems considers that it's a ruby script (so
> it
> > uses a
> > > > wrapper). And if I don't include it into "executables", there's no
> link
> > > > in "/usr/local/bin" anymore.
> > > >
> > > > So, how can I specify that I wanna this script into "/usr/local/bin"
> but
> > it
> > > > just a shell script and need no changes?
> > > >
> > > > I search in the manual but I was unable to found information about
> this
> > topic.
> > > > Any idea?
> > > >
> > >
> > > You actually can't do what you want.  RubyGems is for installing Ruby
> > > programs.  You can't use it to install shell scripts (unless you write
> > > them in Ruby).
> > >
> >
> >  Then how does the rails gem install the "rails" script in ruby/bin?
> >
>
> It's a Ruby program.
>


I'm a little confused then... on Windows after I do a "gem install rails" I
get two new files in ruby/bin: "rails", which is a Ruby program, and "
rails.cmd" which is a shell script.

Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rubygems-developers/attachments/20061027/7a3aa6e5/attachment.html 


More information about the Rubygems-developers mailing list