]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(wget-update): Have wget write to a temporary file,
authorJim Meyering <jim@meyering.net>
Thu, 24 May 2001 20:10:31 +0000 (20:10 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 24 May 2001 20:10:31 +0000 (20:10 +0000)
and replace the original only if wget succeeds.
Also get ansi2nkr.c.

Makefile.maint

index 2de941ddcaf8d34ad7323aa40f6495c7f509b5c2..fa83bb3088195a4e889835281deee18c5eae922d 100644 (file)
@@ -160,13 +160,17 @@ automake_repo=:pserver:anoncvs@anoncvs.cygnus.com:/cvs/automake
 .PHONY: wget-update
 wget-update:
        $(WGET) $(ftp-gnu)/texinfo/texinfo.tex -O $(srcdir)/doc/texinfo.tex
-       for f in config.guess config.sub; do \
-         $(WGET) $(ftp-gnu)/config/$$f -O $(srcdir)/$$f; \
+       for f in config.guess config.sub; do                            \
+         $(WGET) $(ftp-gnu)/config/$$f -O $(srcdir)/$$f.t              \
+           && mv $$f.t $$f;                                            \
        done
-       for f in depcomp missing; do \
-         echo checking out $$f...; \
-         cvs -d $(automake_repo) co -p automake/lib/$$f > t$$$$ \
-           && mv t$$$$ $$f; \
+       f=ansi2knr.c;                                                   \
+         $(WGET) ftp://ftp.cs.wisc.edu/ghost/$$f -O $(srcdir)/src/$$f.f \
+           && mv $$f.t $$f
+       for f in depcomp missing; do                                    \
+         echo checking out $$f...;                                     \
+         cvs -d $(automake_repo) co -p automake/lib/$$f > t$$$$        \
+           && mv t$$$$ $$f;                                            \
        done
 
 define emit-rsync-commands