ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "luislavena (Luis Lavena)" <luislavena@gmail.com>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:46607] [ruby-trunk - Feature #6769][Assigned] rbinstall.rb: install both src and batch files separetely
Date: Sun, 22 Jul 2012 10:04:14 +0900	[thread overview]
Message-ID: <redmine.issue-6769.20120722100413@ruby-lang.org> (raw)


Issue #6769 has been reported by luislavena (Luis Lavena).

----------------------------------------
Feature #6769: rbinstall.rb: install both src and batch files separetely
https://bugs.ruby-lang.org/issues/6769

Author: luislavena (Luis Lavena)
Status: Assigned
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category: misc
Target version: 2.0.0


=begin
Hello,

Current behavior of rbinstall.rb is to concat bin scripts (erb, rake, rdoc, etc) along with a batchfile stub in a single file, resulting in erb.bat, rdoc.bat etc.

Those files works OK when invoked directly, but they do not support the following scenarios:

* Invoke it like "ruby -S rake", which looks for extension-less script in the path (and that does not exist)

* Cannot invoke those scripts from another script, example, from Rake, do "ruby 'rdoc'" will not work.

To circumvent this issue at RubyInstaller, we copied the original bin scripts and replaced the batchfile stubs with simple ones:

https://github.com/oneclick/rubyinstaller/blob/master/recipes/interpreter/ruby19.rake#L188-197

===

I would like to change rbinstall.rb to copy over verbatim bin scripts and simple batchfiles stubs.

That will solve the above two issues I mentioned plus open the scenario to a easy executable-based launcher, similar to gem-exefy:

https://github.com/bosko/gem-exefy

To have identifiable scripts in list of process plus, customized firewall rules and remove the dreaded "Terminate batch job" prompt.

Before I start working on this, I wanted to know what do you think about this?

Thanks in advance for your feedback and looking forward your responses.
=end



-- 
http://bugs.ruby-lang.org/

             reply	other threads:[~2012-07-22  1:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-22  1:04 luislavena (Luis Lavena) [this message]
2012-07-23  5:14 ` [ruby-core:46622] [ruby-trunk - Feature #6769] rbinstall.rb: install both src and batch files separetely usa (Usaku NAKAMURA)
2012-07-24 13:32 ` [ruby-core:46724] " luislavena (Luis Lavena)
2012-10-26 22:30 ` [ruby-core:48392] " ko1 (Koichi Sasada)
2012-10-26 22:53 ` [ruby-core:48403] " luislavena (Luis Lavena)
2012-11-24  0:44 ` [ruby-core:49935] " mame (Yusuke Endoh)
2012-11-25  0:17 ` [ruby-core:50053] " luislavena (Luis Lavena)
2012-11-25  0:34 ` [ruby-core:50054] " mame (Yusuke Endoh)
2015-10-30 12:38 ` [ruby-core:71280] [Ruby trunk " luislavena

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.issue-6769.20120722100413@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).