On 12/13, Vít Ondruch wrote: > Dne 12.12.2012 18:36, Miroslav Suchý napsal(a): > >On 11/29/2012 09:43 AM, Bohuslav Kabrda wrote: > >>- Two connected problems: 1) RPM generates auto provides from > >>shebangs, e.g. #!/usr/bin/ruby will automatically require ruby > >>package; 2) How to run programs with #!/usr/bin/ruby shebangs > >>under JRuby? > > > >We already have mechanism for that: > > > >/etc/alternatives/* > >update-alternatives(8) > > > >/usr/bin/ruby will be symlink to /etc/alternatives/ruby, which > >will be symlink to /usr/bin/jruby or /usr/bin/ruby19 (previously > >known as /usr/bin/ruby). > >And let update-alternatives manage the defaults.
Maybe a stupid idea, but why we just don't prefix the 'jruby' with 'j'? So we can have lancher in '/usr/bin/jruby'. Similar for irb, gem... (jirb, jgem, etc...) Then the shebang will be '#!/usr/bin/jruby' and the MRI version can cooexist with the jruby. -- michal > > Yes, we have, but you need to have root privileges to use them. That > is not cool. We believe that something like this script [1] could > make better service. > > > Vít > > > > [1] https://github.com/bkabrda/multiruby/blob/master/ruby > _______________________________________________ > ruby-sig mailing list > [email protected] > https://admin.fedoraproject.org/mailman/listinfo/ruby-sig -- Michal Fojtik <[email protected]> Deltacloud API, CloudForms _______________________________________________ ruby-sig mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/ruby-sig
