From 63587c30d116fc687737194d8f120bed154cd451 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 11 Nov 2007 09:27:05 +0000 Subject: * Makefile.in (lex.c): touch lex.c if gperf failed. 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. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ Makefile.in | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b26975f7e..b6f55fb1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sun Nov 11 18:15:11 2007 Tanaka Akira + + * Makefile.in (lex.c): touch lex.c if gperf failed. + 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. + Sun Nov 11 17:32:46 2007 Shugo Maeda * insnhelper.ci (vm_call_method): pass mn->nd_clss to diff --git a/Makefile.in b/Makefile.in index 8287dc1c6..93d56ec6a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -165,13 +165,16 @@ $(srcdir)/configure: $(srcdir)/configure.in # * with gperf v.s. without gperf # * ./configure v.s. ../ruby/configure # * GNU make v.s. HP-UX make # HP-UX make invokes the action if lex.c and keywords has same mtime. +# * svn checkout generate a file with mtime as current time +# * XFS has a mtime with fractional part lex.c: keywords if test -f $@ && test -z "`find $? -newer $@ -print`"; then \ touch $@; \ elif test -f $(srcdir)/lex.c && test -z "`find $? -newer $(srcdir)/lex.c -print`"; then \ 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 $@; \ + ( gperf --output-file=$@.tmp -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? && cp $@.tmp $@ ) || \ + touch $@; \ fi .y.c: -- cgit