ruby-changes:6078
From: nobu <ko1@a...>
Date: Fri, 27 Jun 2008 00:35:13 +0900 (JST)
Subject: [ruby-changes:6078] Ruby:r17590 (ruby_1_8): * common.mk (revision.h): split the temporary file.
nobu 2008-06-27 00:34:56 +0900 (Fri, 27 Jun 2008) New Revision: 17590 Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/common.mk Log: * common.mk (revision.h): split the temporary file. [ruby-core:17407] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/common.mk?r1=17590&r2=17589&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=17590&r2=17589&diff_format=u Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 17589) +++ ruby_1_8/ChangeLog (revision 17590) @@ -1,3 +1,7 @@ +Fri Jun 27 00:34:50 2008 Nobuyoshi Nakada <nobu@r...> + + * common.mk (revision.h): split the temporary file. [ruby-core:17407] + Fri Jun 27 00:00:14 2008 Nobuyoshi Nakada <nobu@r...> * ruby.c (set_arg0, ruby_prog_init): freeze $0. a patch from Keita Index: ruby_1_8/common.mk =================================================================== --- ruby_1_8/common.mk (revision 17589) +++ ruby_1_8/common.mk (revision 17590) @@ -471,11 +471,13 @@ dist: $(PROGRAM) $(RUNRUBY) $(srcdir)/distruby.rb -{$(VPATH)}revision.h: revision.h.tmp - @if [ -f $(srcdir)/revision.h ] && { [ ! -s $? ] || cmp $(srcdir)/revision.h $? >/dev/null; }; then \ - $(RM) $?; \ +{$(VPATH)}revision.h: + @$(MAKE) revision.h.tmp + @if [ -f $(srcdir)/revision.h ] && \ + { [ ! -s revision.h.tmp ] || cmp $(srcdir)/revision.h revision.h.tmp >/dev/null; }; then \ + $(RM) revision.h.tmp; \ else \ - mv -f $? $(srcdir)/revision.h; \ + mv -f revision.h.tmp $(srcdir)/revision.h; \ fi revision.h.tmp: $(REVISION_FORCE) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/