ruby-changes:2387
From: ko1@a...
Date: 11 Nov 2007 18:27:15 +0900
Subject: [ruby-changes:2387] akr - Ruby:r13878 (trunk): * Makefile.in (lex.c): touch lex.c if gperf failed.
akr 2007-11-11 18:27:05 +0900 (Sun, 11 Nov 2007) New Revision: 13878 Modified files: trunk/ChangeLog trunk/Makefile.in Log: * 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. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/Makefile.in?r1=13878&r2=13877 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13878&r2=13877 Index: ChangeLog =================================================================== --- ChangeLog (revision 13877) +++ ChangeLog (revision 13878) @@ -1,3 +1,10 @@ +Sun Nov 11 18:15:11 2007 Tanaka Akira <akr@f...> + + * 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 <shugo@r...> * insnhelper.ci (vm_call_method): pass mn->nd_clss to Index: Makefile.in =================================================================== --- Makefile.in (revision 13877) +++ Makefile.in (revision 13878) @@ -165,13 +165,16 @@ # * 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: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml