diff options
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 60 |
1 files changed, 6 insertions, 54 deletions
@@ -46,62 +46,14 @@ To: $(announcement_mail-$(RELEASE_TYPE)) \ CC: $(announcement_Cc_) \ Mail-Followup-To: autoconf@gnu.org -# Update files from gnulib. -.PHONY: fetch gnulib-update autom4te-update -fetch: gnulib-update autom4te-update - -gnulib-update: - cp $(gnulib_dir)/build-aux/announce-gen $(srcdir)/build-aux - cp $(gnulib_dir)/build-aux/config.guess $(srcdir)/build-aux - cp $(gnulib_dir)/build-aux/config.sub $(srcdir)/build-aux - cp $(gnulib_dir)/build-aux/gendocs.sh $(srcdir)/build-aux - cp $(gnulib_dir)/build-aux/git-version-gen $(srcdir)/build-aux - cp $(gnulib_dir)/build-aux/gitlog-to-changelog $(srcdir)/build-aux - cp $(gnulib_dir)/build-aux/gnupload $(srcdir)/build-aux - cp $(gnulib_dir)/build-aux/install-sh $(srcdir)/build-aux - cp $(gnulib_dir)/build-aux/mdate-sh $(srcdir)/build-aux - cp $(gnulib_dir)/build-aux/move-if-change $(srcdir)/build-aux - cp $(gnulib_dir)/build-aux/texinfo.tex $(srcdir)/build-aux - cp $(gnulib_dir)/build-aux/update-copyright $(srcdir)/build-aux - cp $(gnulib_dir)/build-aux/useless-if-before-free $(srcdir)/build-aux - cp $(gnulib_dir)/build-aux/vc-list-files $(srcdir)/build-aux - cp $(gnulib_dir)/doc/fdl.texi $(srcdir)/doc - cp $(gnulib_dir)/doc/gendocs_template $(srcdir)/doc - cp $(gnulib_dir)/doc/gnu-oids.texi $(srcdir)/doc - cp $(gnulib_dir)/doc/make-stds.texi $(srcdir)/doc - cp $(gnulib_dir)/doc/standards.texi $(srcdir)/doc - cp $(gnulib_dir)/m4/autobuild.m4 $(srcdir)/m4 - cp $(gnulib_dir)/top/GNUmakefile $(srcdir) - cp $(gnulib_dir)/top/maint.mk $(srcdir) +# Update files maintained in gnulib and autom4te. +.PHONY: fetch WGET = wget -WGETFLAGS = -C off - -## Fetch the latest versions of files we care about. -automake_gitweb = \ - https://git.savannah.gnu.org/gitweb/?p=automake.git;a=blob_plain;hb=HEAD; -autom4te_files = \ - Autom4te/Channels.pm \ - Autom4te/FileUtils.pm \ - Autom4te/Getopt.pm \ - Autom4te/XFile.pm - -move_if_change = '$(abs_srcdir)'/build-aux/move-if-change - -autom4te-update: - rm -fr Fetchdir > /dev/null 2>&1 - mkdir -p Fetchdir/Autom4te - for file in $(autom4te_files); do \ - infile=`echo $$file | sed 's/Autom4te/Automake/g'`; \ - $(WGET) $(WGET_FLAGS) \ - "$(automake_gitweb)f=lib/$$infile" \ - -O "Fetchdir/$$file" || exit; \ - done - perl -pi -e 's/Automake::/Autom4te::/g' Fetchdir/Autom4te/*.pm - for file in $(autom4te_files); do \ - $(move_if_change) Fetchdir/$$file $(srcdir)/lib/$$file || exit; \ - done - rm -fr Fetchdir > /dev/null 2>&1 + +fetch: + WGET="$(WGET)" PERL="$(PERL)" \ + $(SHELL) $(srcdir)/build-aux/fetch.sh "$(abs_top_srcdir)" # Tests not to run. local-checks-to-skip ?= \ |