ruby-changes:2388
From: ko1@a...
Date: 11 Nov 2007 18:32:38 +0900
Subject: [ruby-changes:2388] akr - Ruby:r13879 (trunk): touch lex.c only if lex.c exists.
akr 2007-11-11 18:32:30 +0900 (Sun, 11 Nov 2007)
New Revision: 13879
Modified files:
trunk/ChangeLog
trunk/Makefile.in
Log:
touch lex.c only if lex.c exists.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/Makefile.in?r1=13879&r2=13878
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13879&r2=13878
Index: ChangeLog
===================================================================
--- ChangeLog (revision 13878)
+++ ChangeLog (revision 13879)
@@ -1,6 +1,6 @@
-Sun Nov 11 18:15:11 2007 Tanaka Akira <akr@f...>
+Sun Nov 11 18:31:48 2007 Tanaka Akira <akr@f...>
- * 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.
Index: Makefile.in
===================================================================
--- Makefile.in (revision 13878)
+++ Makefile.in (revision 13879)
@@ -174,7 +174,7 @@
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:
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml