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 26E8317CBCC3 for ; Sun, 25 Nov 2012 09:24:25 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 62EB2EA6304 for ; Sun, 25 Nov 2012 09:22:48 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 4F0E697A82B for ; Sun, 25 Nov 2012 09:22:48 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1boKGSYFd_0C for ; Sun, 25 Nov 2012 09:22:48 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 149F997A820 for ; Sun, 25 Nov 2012 09:22:48 +0900 (JST) Received: from carbon.ruby-lang.org (carbon.ruby-lang.org [221.186.184.68]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 5BA0D952459 for ; Sun, 25 Nov 2012 09:22:46 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by carbon.ruby-lang.org (Postfix) with ESMTP id C4E323C21EBA4; Sun, 25 Nov 2012 09:17:53 +0900 (JST) Received: from fluorine.ruby-lang.org (www.rubyist.net [210.251.121.216]) by carbon.ruby-lang.org (Postfix) with ESMTP id 87D1D3C21F10D for ; Sun, 25 Nov 2012 09:16:57 +0900 (JST) Received: from ruby-lang.org (localhost [127.0.0.1]) by fluorine.ruby-lang.org (Postfix) with ESMTP id A99B03E005 for ; Sun, 25 Nov 2012 09:16:15 +0900 (JST) Delivered-To: ruby-core@ruby-lang.org Date: Sun, 25 Nov 2012 09:17:41 +0900 Posted: Sun, 25 Nov 2012 09:16:15 +0900 From: "luislavena (Luis Lavena)" Reply-To: ruby-core@ruby-lang.org Subject: [ruby-core:50053] [ruby-trunk - Feature #6769] rbinstall.rb: install both src and batch files separetely To: ruby-core@ruby-lang.org Message-Id: References: X-ML-Name: ruby-core X-Mail-Count: 50053 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-core-ctl@ruby-lang.org; help= X-Mailer: Redmine X-Redmine-Issue-Author: luislavena X-Redmine-Issue-Assignee: luislavena X-Auto-Response-Suppress: OOF X-Redmine-Issue-Id: 6769 X-Redmine-Mailinglistintegration-Message-Ids: 22747 X-Redmine-Project: ruby-trunk Auto-Submitted: auto-generated X-Redmine-Site: Ruby Issue Tracking System X-Redmine-Host: bugs.ruby-lang.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Precedence: bulk List-Id: ruby-core.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: Issue #6769 has been updated by luislavena (Luis Lavena). Target version changed from 2.0.0 to next minor Sorry, was unable to work on this while still working on the other bug/issues. I'm moving this to next minor. Either way, RubyInstaller binary distributions have been doing what this ticket describes. Thank you. ---------------------------------------- Feature #6769: rbinstall.rb: install both src and batch files separetely https://bugs.ruby-lang.org/issues/6769#change-33829 Author: luislavena (Luis Lavena) Status: Assigned Priority: Normal Assignee: luislavena (Luis Lavena) Category: misc Target version: next minor =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/