ruby-changes:2391
From: ko1@a...
Date: 11 Nov 2007 19:41:45 +0900
Subject: [ruby-changes:2391] akr - Ruby:r13882 (trunk): * Makefile.in (lex.c): simplified.
akr 2007-11-11 19:41:35 +0900 (Sun, 11 Nov 2007)
New Revision: 13882
Modified files:
trunk/ChangeLog
trunk/Makefile.in
Log:
* Makefile.in (lex.c): simplified.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/Makefile.in?r1=13882&r2=13881
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13882&r2=13881
Index: ChangeLog
===================================================================
--- ChangeLog (revision 13881)
+++ ChangeLog (revision 13882)
@@ -1,3 +1,7 @@
+Sun Nov 11 19:40:52 2007 Tanaka Akira <akr@f...>
+
+ * Makefile.in (lex.c): simplified.
+
Sun Nov 11 18:31:48 2007 Tanaka Akira <akr@f...>
* Makefile.in (lex.c): touch lex.c if gperf failed but lex.c exists.
Index: Makefile.in
===================================================================
--- Makefile.in (revision 13881)
+++ Makefile.in (revision 13882)
@@ -168,17 +168,11 @@
# * 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 \
+ ( gperf --output-file=$@.tmp -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? && mv $@.tmp $@ ) || \
+ if test -f $@; then \
( touch $@ && echo $@ touched. ) \
- elif test -f $(srcdir)/lex.c && test -z "`find $? -newer $(srcdir)/lex.c -print`"; then \
- ( cp $(srcdir)/lex.c $@ && echo $@ copied. ) \
else \
- ( gperf --output-file=$@.tmp -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? && cp $@.tmp $@ ) || \
- if test -f $@; then \
- ( touch $@ && echo $@ touched after gperf fail. ) \
- else \
- ( cp $(srcdir)/lex.c $@ && echo $@ copied after gperf fail. ) \
- fi \
+ ( cp $(srcdir)/lex.c $@ && echo $@ copied. ) \
fi
.y.c:
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml