CVS Problem: java/parse.c and java/parse-scan.c deleted
John David Anglin
dave@hiauly1.hia.nrc.ca
Wed Sep 5 22:59:00 GMT 2001
> > 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.$$
More information about the Gcc-bugs
mailing list