This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: CVS Problem: java/parse.c and java/parse-scan.c deleted
- To: jsm28 at cam dot ac dot uk (Joseph S. Myers)
- Subject: Re: CVS Problem: java/parse.c and java/parse-scan.c deleted
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Thu, 6 Sep 2001 14:39:43 -0400 (EDT)
- Cc: David dot Billinghurst at riotinto dot com, gcc-bugs at gcc dot gnu dot org
> On Wed, 5 Sep 2001, John David Anglin wrote:
> > I wonder if gcc_update should check to see if a file exists before
> > touching it?
>
> Also, since these files aren't in CVS (Bison-generated ones aren't), it
> shouldn't be touching them at all. That part of the patch should be
> reverted (but gcc/java/keyword.h should still be touched, since it is in
> CVS).
I agree.
Here is an updated patch for gcc_update which doesn't touch missing files.
It just prints a warning. OK?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2001-09-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
* gcc_update (touch_files): Print a warning if a file does not exist.
--- gcc_update.orig Wed Sep 5 10:50:35 2001
+++ gcc_update Thu Sep 6 14:32:18 2001
@@ -114,9 +114,13 @@
files_and_dependencies | sed 's, .*, \\,' >> Makefile.$$
echo ':' >> Makefile.$$
echo ' @for f in $?; do test -f $$f || exit 0; done; \' >> Makefile.$$
- echo ' echo Touching $@...; \' >> Makefile.$$
- echo ' echo Touching $@... 1>&2; \' >> Makefile.$$
- echo ' touch $@' >> Makefile.$$
+ echo ' if [ -f $@ ] ; then \' >> Makefile.$$
+ echo ' echo Touching $@...; \' >> Makefile.$$
+ echo ' echo Touching $@... 1>&2; \' >> Makefile.$$
+ echo ' touch $@; \' >> Makefile.$$
+ echo ' else \' >> Makefile.$$
+ echo ' echo Warning: $@ does not exist. 1>&2; \' >> Makefile.$$
+ echo ' fi' >> Makefile.$$
files_and_dependencies | sed 's,[^ ]* ,,;s,$, :,' >> Makefile.$$
while ${MAKE-make} -f Makefile.$$ all | grep . > /dev/null; do
sleep 1