summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-05-24 21:30:14 +0000
committerJim Meyering <jim@meyering.net>2001-05-24 21:30:14 +0000
commitc52ca035b15aa58303750a805dc3f474e905e108 (patch)
tree556446501c8b709e384e4ced8fe41e22c76eedde /Makefile.maint
parent7d6896c0d9a723d30b83cb426c36425e720ef8c2 (diff)
downloadcoreutils-c52ca035b15aa58303750a805dc3f474e905e108.tar.gz
coreutils-c52ca035b15aa58303750a805dc3f474e905e108.tar.bz2
coreutils-c52ca035b15aa58303750a805dc3f474e905e108.zip
(move-if-change): Define.
(wget-update): Use it in place of mv.
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.maint b/Makefile.maint
index fa83bb308..3a8b3afd9 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -156,21 +156,24 @@ writable-files:
WGET = wget
ftp-gnu = ftp://ftp.gnu.org/gnu
+# Use mv, if you don't have move-if-change.
+move-if-change = move-if-change
+
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.t \
- && mv $$f.t $$f; \
+ && $(move-if-change) $$f.t $$f; \
done
f=ansi2knr.c; \
$(WGET) ftp://ftp.cs.wisc.edu/ghost/$$f -O $(srcdir)/src/$$f.f \
- && mv $$f.t $$f
+ && $(move-if-change) $$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; \
+ && $(move-if-change) t$$$$ $$f; \
done
define emit-rsync-commands