This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: CVS Problem: java/parse.c and java/parse-scan.c deleted
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- 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 01:53:42 -0400 (EDT)
- Cc: David dot Billinghurst at riotinto dot com, gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
> > Probably by http://gcc.gnu.org/ml/gcc-patches/2001-09/msg00119.html
>
> I wonder if gcc_update should check to see if a file exists before
> touching it?
This prints a warning if a dependent file doesn't exist. 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 warning if file does not exist.
--- gcc_update.orig Wed Sep 5 10:50:35 2001
+++ gcc_update Thu Sep 6 01:36:21 2001
@@ -114,6 +114,9 @@
files_and_dependencies | sed 's, .*, \\,' >> Makefile.$$
echo ':' >> Makefile.$$
echo ' @for f in $?; do test -f $$f || exit 0; done; \' >> Makefile.$$
+ echo ' if [ ! -f $@ ] ; then \' >> Makefile.$$
+ echo ' echo Warning: $@ does not exist. 1>&2; \' >> Makefile.$$
+ echo ' fi; \' >> Makefile.$$
echo ' echo Touching $@...; \' >> Makefile.$$
echo ' echo Touching $@... 1>&2; \' >> Makefile.$$
echo ' touch $@' >> Makefile.$$