[前][次][番号順一覧][スレッド一覧]

ruby-changes:16172

From: ryan <ko1@a...>
Date: Thu, 3 Jun 2010 05:42:47 +0900 (JST)
Subject: [ruby-changes:16172] Ruby:r28134 (trunk): Allow bin/* install from dot-dirs. Fixes rvm and multiruby installations.

ryan	2010-06-03 05:42:29 +0900 (Thu, 03 Jun 2010)

  New Revision: 28134

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28134

  Log:
    Allow bin/* install from dot-dirs. Fixes rvm and multiruby installations.

  Modified files:
    trunk/ChangeLog
    trunk/tool/rbinstall.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 28133)
+++ ChangeLog	(revision 28134)
@@ -1,3 +1,8 @@
+Thu Jun  3 05:37:46 2010  Ryan Davis  <ryand-ruby@z...>
+
+	* tool/rbinstall.rb (install-bin): Allow bin/* install from dot-dirs.
+	  Fixes rvm and multiruby installations.
+
 Thu Jun  3 01:22:45 2010  Hidetoshi NAGAI  <nagai@a...>
 
 	* ext/tk/lib/tk.rb: fix typo and race condition.
Index: tool/rbinstall.rb
===================================================================
--- tool/rbinstall.rb	(revision 28133)
+++ tool/rbinstall.rb	(revision 28134)
@@ -404,7 +404,9 @@
   end
   for src in Dir[File.join(srcdir, "bin/*")]
     next unless File.file?(src)
-    next if /\/[.#]|(\.(old|bak|orig|rej|diff|patch|core)|~|\/core)$/i =~ src
+    s = src.downcase
+    next if %w(old bak orig rej diff patch core).include? File.extname(s)
+    next if /^\.\#|(~|core)$/i =~ File.basename(s)
 
     name = RbConfig.expand(trans[File.basename(src)])
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]