[前][次][番号順一覧][スレッド一覧]

ruby-changes:2390

From: ko1@a...
Date: 11 Nov 2007 19:33:41 +0900
Subject: [ruby-changes:2390] akr - Ruby:r13881 (trunk): copy $(srcdir)/lex.c if gperf failed and $@ is not exist.

akr	2007-11-11 19:33:33 +0900 (Sun, 11 Nov 2007)

  New Revision: 13881

  Modified files:
    trunk/Makefile.in

  Log:
    copy $(srcdir)/lex.c if gperf failed and $@ is not exist.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/Makefile.in?r1=13881&r2=13880

Index: Makefile.in
===================================================================
--- Makefile.in	(revision 13880)
+++ Makefile.in	(revision 13881)
@@ -174,7 +174,11 @@
 	  ( 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 $@ ) || \
-	  ( test -f $@ && touch $@ && echo $@ touched after gperf fail. ) \
+	  if test -f $@; then \
+	    ( touch $@ && echo $@ touched after gperf fail. ) \
+	  else \
+	    ( cp $(srcdir)/lex.c $@ && echo $@ copied after gperf fail. ) \
+	  fi \
 	fi
 
 .y.c:

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]