From efd8303bc39d07a2bb20c891bf1778077c437e7e Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 11 Nov 2007 09:32:30 +0000 Subject: [PATCH] touch lex.c only if lex.c exists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++-- Makefile.in | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b6f55fb1e8..e150f9ee93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,6 @@ -Sun Nov 11 18:15:11 2007 Tanaka Akira +Sun Nov 11 18:31:48 2007 Tanaka Akira - * Makefile.in (lex.c): touch lex.c if gperf failed. + * Makefile.in (lex.c): touch lex.c if gperf failed but lex.c exists. Although this may cause non-updated lex.c, svn co may generate keywords newer than lex.c especially on a file system which can record fractional mtime such as XFS. diff --git a/Makefile.in b/Makefile.in index 93d56ec6a7..96212279c5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -174,7 +174,7 @@ lex.c: keywords cp $(srcdir)/lex.c $@; \ else \ ( gperf --output-file=$@.tmp -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? && cp $@.tmp $@ ) || \ - touch $@; \ + ( test -f $@ && touch $@ ) \ fi .y.c: