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

ruby-changes:11375

From: nobu <ko1@a...>
Date: Tue, 17 Mar 2009 21:43:13 +0900 (JST)
Subject: [ruby-changes:11375] Ruby:r22995 (trunk): * tool/make-snapshot (package): creates .revision.time and passes

nobu	2009-03-17 21:42:56 +0900 (Tue, 17 Mar 2009)

  New Revision: 22995

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

  Log:
    * tool/make-snapshot (package): creates .revision.time and passes
      CHDIR to create prerequisite files.

  Modified files:
    trunk/ChangeLog
    trunk/tool/make-snapshot

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 22994)
+++ ChangeLog	(revision 22995)
@@ -1,3 +1,8 @@
+Tue Mar 17 21:42:54 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* tool/make-snapshot (package): creates .revision.time and passes
+	  CHDIR to create prerequisite files.
+
 Tue Mar 17 18:00:55 2009  Akinori MUSHA  <knu@i...>
 
 	* enumerator.c (Enumerator#{each_,}{with_index,with_object}): Fix
Index: tool/make-snapshot
===================================================================
--- tool/make-snapshot	(revision 22994)
+++ tool/make-snapshot	(revision 22995)
@@ -108,6 +108,7 @@
     v = v[0]
   end
   open("#{v}/revision.h", "wb") {|f| f.puts "#define RUBY_REVISION #{revision}"}
+  open("#{v}/.revision.time", "wb") {}
   version ||= (versionhdr = IO.read("#{v}/version.h"))[RUBY_VERSION_PATTERN, 1]
   version or return
   if patchlevel
@@ -159,7 +160,7 @@
       FileUtils.mkpath(hdrdir = "#{extout}/include/ruby")
       File.open("#{hdrdir}/config.h", "w") {}
       miniruby = ENV['MINIRUBY'] + " -rcross"
-      IO.popen("make -f - prereq srcdir=. IFCHANGE=tool/ifchange 'MINIRUBY=#{miniruby}' 'RUBY=#{ENV["RUBY"]}'", "w") do |f|
+      IO.popen("make -f - prereq srcdir=. CHDIR=cd IFCHANGE=tool/ifchange 'MINIRUBY=#{miniruby}' 'RUBY=#{ENV["RUBY"]}'", "w") do |f|
         f.puts(IO.read("Makefile.in").gsub(/^@.*\n/, '').gsub(/@([A-Za-z_]\w*)@/) {ENV[$1]})
         f.puts(commonmk.gsub(/\{[^{}]*\}/, ""))
       end

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

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