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

ruby-changes:11905

From: nobu <ko1@a...>
Date: Mon, 25 May 2009 11:47:22 +0900 (JST)
Subject: [ruby-changes:11905] Ruby:r23566 (trunk): * tool/mkconfig.rb, tool/instruby.rb: removed redundant code.

nobu	2009-05-25 11:47:07 +0900 (Mon, 25 May 2009)

  New Revision: 23566

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

  Log:
    * tool/mkconfig.rb, tool/instruby.rb: removed redundant code.

  Modified files:
    trunk/ChangeLog
    trunk/tool/instruby.rb
    trunk/tool/mkconfig.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23565)
+++ ChangeLog	(revision 23566)
@@ -1,3 +1,7 @@
+Mon May 25 11:47:06 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* tool/mkconfig.rb, tool/instruby.rb: removed redundant code.
+
 Mon May 25 09:34:09 2009  Yukihiro Matsumoto  <matz@r...>
 
 	* string.c (rb_str_hash): avoid calling rb_enc_str_asciionly_p().
Index: tool/instruby.rb
===================================================================
--- tool/instruby.rb	(revision 23565)
+++ tool/instruby.rb	(revision 23566)
@@ -4,9 +4,9 @@
 include RbConfig
 $".unshift File.expand_path("./rbconfig.rb")
 
-srcdir = File.expand_path('..', File.dirname(__FILE__))
+srcdir = File.expand_path('../..', __FILE__)
 unless defined?(CROSS_COMPILING) and CROSS_COMPILING
-  $:.replace([File.expand_path("lib", srcdir), Dir.pwd])
+  $:.replace([srcdir+"/lib", Dir.pwd])
 end
 require 'fileutils'
 require 'shellwords'
Index: tool/mkconfig.rb
===================================================================
--- tool/mkconfig.rb	(revision 23565)
+++ tool/mkconfig.rb	(revision 23566)
@@ -4,7 +4,7 @@
 $install_name ||= nil
 $so_name ||= nil
 
-srcdir = File.expand_path('..', File.dirname(__FILE__))
+srcdir = File.expand_path('../..', __FILE__)
 $:.replace [srcdir+"/lib"] unless defined?(CROSS_COMPILING)
 $:.unshift(".")
 

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

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