From: Jim Meyering Date: Fri, 15 Nov 2002 21:02:04 +0000 (+0000) Subject: (gnu_rel_host): Define. X-Git-Tag: v4.5.4~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aee9e8a9b560cd7171674172b9966369480d12e;p=thirdparty%2Fcoreutils.git (gnu_rel_host): Define. (url_dir_list): Choose from (alpha|ftp).gnu.org depending on whether $(VERSION) looks like a major release number. --- diff --git a/Makefile.cfg b/Makefile.cfg index a5a9284e73..cbdfd86884 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -1,8 +1,14 @@ # -*- makefile -*- ## Customize Makefile.maint. +# If the version number matches /^\d+.\d+.\d$/ or /[a-z]$/, use alpha.gnu.org. +# Otherwise, use ftp.gnu.org. +gnu_rel_host := \ + $(shell perl -e \ + 'print "$(VERSION)" =~ /^(\d\.\d\.\d|.*[a-z])$$/ ? "alpha" : "ftp"') + url_dir_list = \ - ftp://alpha.gnu.org/gnu/fetish \ + ftp://$(gnu_rel_host).gnu.org/gnu/fetish \ http://fetish.sf.net \ # Files to update automatically.