From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id DD26D19C0048 for ; Fri, 30 Oct 2015 21:10:48 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 7660FB5D8DB for ; Fri, 30 Oct 2015 21:38:59 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 5D77E952439 for ; Fri, 30 Oct 2015 21:38:59 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 93DA31204D0; Fri, 30 Oct 2015 21:38:59 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id EB95A1204AE for ; Fri, 30 Oct 2015 21:38:53 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=tLsvMjSJ+4vCcKJAOciSlMPmeSo=; b=ZlaCAQEN776C13cz5F qA0FceCwGzy4SoORMIssAbVcXbFMngqrbbCHAzfEy73aPqhbk7nYa4Vtz5WYWqrg E1/A34Ksv2b8mWeo3kZdnN8vKPXmYTJ/CuAmzFybNS9tDy/ffFA/kWqBvK8P01vQ IzGprdzvpgqBqgH/yd18RS5go= Received: by filter0452p1mdw1.sendgrid.net with SMTP id filter0452p1mdw1.1928.563364D92D 2015-10-30 12:38:49.456994392 +0000 UTC Received: from herokuapp.com (ec2-54-91-159-198.compute-1.amazonaws.com [54.91.159.198]) by ismtpd0006p1iad1.sendgrid.net (SG) with ESMTP id _rS446qRRECfTvauF1yTYg Fri, 30 Oct 2015 12:38:49.348 +0000 (UTC) Date: Fri, 30 Oct 2015 12:38:49 +0000 From: luislavena@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 45916 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 6769 X-Redmine-Issue-Author: luislavena X-Redmine-Issue-Assignee: nobu X-Redmine-Sender: luislavena X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS5++gS/8YDc9WcwB8uq9H2uOojCKRJHQNLPbW Io6C9or8BNyu7kOyqW02zud+gmmYUH+djsvgaDkGGRDvjpPRqunC5oMMzgq/fxpK6gImhf+u1JjvRe 2nL9ZnibLsFn4EHYLFl4ZVZneC000vnW+b1C X-ML-Name: ruby-core X-Mail-Count: 71280 Subject: [ruby-core:71280] [Ruby trunk - Feature #6769] rbinstall.rb: install both src and batch files separetely X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #6769 has been updated by Luis Lavena. Assignee changed from Luis Lavena to Nobuyoshi Nakada ---------------------------------------- Feature #6769: rbinstall.rb: install both src and batch files separetely https://bugs.ruby-lang.org/issues/6769#change-54657 * Author: Luis Lavena * Status: Assigned * Priority: Normal * Assignee: Nobuyoshi Nakada ---------------------------------------- =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 -- https://bugs.ruby-lang.org/