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

ruby-changes:2399

From: ko1@a...
Date: 12 Nov 2007 12:46:28 +0900
Subject: [ruby-changes:2399] akr - Ruby:r13890 (ruby_1_8): * Makefile.in (lex.c): don't remove lex.c at first.

akr	2007-11-12 12:45:59 +0900 (Mon, 12 Nov 2007)

  New Revision: 13890

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/Makefile.in

  Log:
    * Makefile.in (lex.c): don't remove lex.c at first.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/Makefile.in?r1=13890&r2=13889
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=13890&r2=13889

Index: ruby_1_8/Makefile.in
===================================================================
--- ruby_1_8/Makefile.in	(revision 13889)
+++ ruby_1_8/Makefile.in	(revision 13890)
@@ -155,9 +155,12 @@
 		cd $(srcdir) && $(AUTOCONF)
 
 lex.c: keywords
-	@-$(RM) $@
-	gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@ || \
-	cp "$(srcdir)/$@" .
+	( gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@.tmp && mv $@.tmp $@ ) || \
+	if test -f $@; then \
+	  touch $@ && echo $@ touched.; \
+	else \
+	  cp $(srcdir)/lex.c $@ && echo $@ copied.; \
+	fi
 
 .y.c:
 	$(YACC) $<
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 13889)
+++ ruby_1_8/ChangeLog	(revision 13890)
@@ -1,3 +1,7 @@
+Mon Nov 12 12:38:31 2007  Tanaka Akira  <akr@f...>
+
+	* Makefile.in (lex.c): don't remove lex.c at first.
+
 Fri Nov  9 07:26:04 2007  Yukihiro Matsumoto  <matz@r...>
 
 	* random.c: update MT URL.[ruby-core:13305].

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

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