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

ruby-changes:10208

From: nobu <ko1@a...>
Date: Sat, 24 Jan 2009 08:21:35 +0900 (JST)
Subject: [ruby-changes:10208] Ruby:r21752 (trunk): * lib/mkmf.rb (configuration): tools under the top source

nobu	2009-01-24 08:21:16 +0900 (Sat, 24 Jan 2009)

  New Revision: 21752

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

  Log:
    * lib/mkmf.rb (configuration): tools under the top source
      directory are not installed, so unusable outside extmk.rb.

  Modified files:
    trunk/ChangeLog
    trunk/lib/mkmf.rb
    trunk/version.h

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21751)
+++ ChangeLog	(revision 21752)
@@ -1,3 +1,8 @@
+Sat Jan 24 08:22:35 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/mkmf.rb (configuration): tools under the top source
+	  directory are not installed, so unusable outside extmk.rb.
+
 Fri Jan 23 17:24:31 2009  WATANABE Hirofumi  <eban@r...>
 
 	* golf_prelude.rb (Enumerator#inspect): avoid warning.
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 21751)
+++ lib/mkmf.rb	(revision 21752)
@@ -1367,6 +1367,7 @@
   else
     sep = ""
   end
+  possible_command = (proc {|s| s if /top_srcdir/ !~ s} unless $extmk)
   extconf_h = $extconf_h ? "-DRUBY_EXTCONF_H=\\\"$(RUBY_EXTCONF_H)\\\" " : $defs.join(" ") << " "
   mk << %{
 CC = #{CONFIG['CC']}
@@ -1404,13 +1405,13 @@
 ruby_version = #{RbConfig::CONFIG['ruby_version']}
 ruby = #{$ruby}
 RUBY = $(ruby#{sep})
-RM = #{config_string('RM') || '$(RUBY) -run -e rm -- -f'}
+RM = #{config_string('RM', &possible_command) || '$(RUBY) -run -e rm -- -f'}
 RM_RF = #{'$(RUBY) -run -e rm -- -rf'}
-MAKEDIRS = #{config_string('MAKEDIRS') || '@$(RUBY) -run -e mkdir -- -p'}
-INSTALL = #{config_string('INSTALL') || '@$(RUBY) -run -e install -- -vp'}
+MAKEDIRS = #{config_string('MAKEDIRS', &possible_command) || '@$(RUBY) -run -e mkdir -- -p'}
+INSTALL = #{config_string('INSTALL', &possible_command) || '@$(RUBY) -run -e install -- -vp'}
 INSTALL_PROG = #{config_string('INSTALL_PROG') || '$(INSTALL) -m 0755'}
 INSTALL_DATA = #{config_string('INSTALL_DATA') || '$(INSTALL) -m 0644'}
-COPY = #{config_string('CP') || '@$(RUBY) -run -e cp -- -v'}
+COPY = #{config_string('CP', &possible_command) || '@$(RUBY) -run -e cp -- -v'}
 
 #### End of system configuration section. ####
 
@@ -1682,7 +1683,7 @@
   mfile.print("install-rb-default: pre-install-rb-default\n")
   mfile.print("pre-install-rb: Makefile\n")
   mfile.print("pre-install-rb-default: Makefile\n")
-  fsep = config_string('BUILD_FILE_SEPARATOR')
+  fsep = config_string('BUILD_FILE_SEPARATOR') {|s| s unless s == "/"}
   sep = fsep ? ":/=#{fsep}" : ""
   for sfx, i in [["-default", [["lib/**/*.rb", "$(RUBYLIBDIR)", "lib"]]], ["", $INSTALLFILES]]
     files = install_files(mfile, i, nil, srcprefix) or next
@@ -1739,7 +1740,6 @@
     end
   end
 
-  sep = config_string('BUILD_FILE_SEPARATOR') {|s| ":/=#{s}" if s != "/"} || ""
   mfile.print "$(RUBYARCHDIR)/" if $extout
   mfile.print "$(DLLIB): "
   mfile.print "$(DEFFILE) " if makedef
Index: version.h
===================================================================
--- version.h	(revision 21751)
+++ version.h	(revision 21752)
@@ -1,5 +1,5 @@
 #define RUBY_VERSION "1.9.1"
-#define RUBY_RELEASE_DATE "2009-01-23"
+#define RUBY_RELEASE_DATE "2009-01-24"
 #define RUBY_PATCHLEVEL 5000
 #define RUBY_BRANCH_NAME "trunk"
 
@@ -8,7 +8,7 @@
 #define RUBY_VERSION_TEENY 1
 #define RUBY_RELEASE_YEAR 2009
 #define RUBY_RELEASE_MONTH 1
-#define RUBY_RELEASE_DAY 23
+#define RUBY_RELEASE_DAY 24
 
 #ifdef RUBY_EXTERN
 RUBY_EXTERN const char ruby_version[];

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

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