summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2020-09-11 14:51:00 -0400
committerZack Weinberg <zackw@panix.com>2020-09-11 14:51:00 -0400
commit93270f112e69ede0afbb57d40c4bc6fbb6a1c2cf (patch)
treeef78391807d78646819bbe1538acfbca427a54fc /cfg.mk
parentb560f0a657be0ba69417d26589ffd93a26f62573 (diff)
downloadautoconf-93270f112e69ede0afbb57d40c4bc6fbb6a1c2cf.tar.gz
Rewrite fetch.sh in Perl.
Using HTTP::Tiny to talk to the network, instead of wget, means that we can make just one TCP connection to git.savannah.gnu.org to do the whole job, which is quite a bit faster. It should also be more robust against weird characters in filenames / URLs and stuff. The script has a higher requirement for Perl than is the standard in autoconf -- 5.14 (first version with HTTP::Tiny), with IO::Socket::SSL installed -- but that’s ok, I hope, because it’s maintainer-only and not installed. fetch.sh was the sole user of move-if-change, and the Perl script does that job itself, but I left move-if-change in build-aux and on the fetch list anyway, in case we discover another use for it in the future. * build-aux/fetch.sh: Replace with... * build-aux/fetch.pl: ... reimplementation in Perl. * cfg.mk (fetch): Update to match.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk6
1 files changed, 1 insertions, 5 deletions
diff --git a/cfg.mk b/cfg.mk
index e6dc4996..33ad6e06 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -48,12 +48,8 @@ Mail-Followup-To: autoconf@gnu.org
# Update files maintained in gnulib and autom4te.
.PHONY: fetch
-
-WGET = wget
-
fetch:
- WGET="$(WGET)" PERL="$(PERL)" \
- $(SHELL) $(srcdir)/build-aux/fetch.sh "$(abs_top_srcdir)"
+ $(PERL) $(srcdir)/build-aux/fetch.pl "$(abs_top_srcdir)"
# Tests not to run.
local-checks-to-skip ?= \