diff top/maint.mk @ 12329:1d8d8b72ddd8

build: mention ftp redirector in release announcements Now that http://ftpmirror.gnu.org/PACKAGE/ redirects to a nearby mirror, we should promote its use in release announcements. Meanwhile, mention the mirror list. * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for values that used to come from cfg.mk; mention FTP redirect URL. * build-aux/announce-gen: Mention the mirror list. Suggested by Karl Berry. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Fri, 20 Nov 2009 06:23:42 -0700
parents 444e305ec8cc
children a22f69c2029c
line wrap: on
line diff
--- a/top/maint.mk	Wed Nov 18 22:14:39 2009 -0700
+++ b/top/maint.mk	Fri Nov 20 06:23:42 2009 -0700
@@ -63,6 +63,20 @@
 # Old releases are stored here.
 release_archive_dir ?= ../release
 
+# Override gnu_rel_host and url_dir_list in cfg.mk if these are not right.
+# Use alpha.gnu.org for alpha and beta releases.
+# Use ftp.gnu.org for stable releases.
+gnu_ftp_host-alpha = alpha.gnu.org
+gnu_ftp_host-beta = alpha.gnu.org
+gnu_ftp_host-stable = ftp.gnu.org
+gnu_rel_host ?= $(gnu_ftp_host-$(RELEASE_TYPE))
+
+ifeq ($(gnu_rel_host),ftp.gnu.org)
+url_dir_list ?= http://ftpmirror.gnu.org/$(PACKAGE)
+else
+url_dir_list ?= ftp://$(gnu_rel_host)/gnu/$(PACKAGE)
+endif
+
 # Prevent programs like 'sort' from considering distinct strings to be equal.
 # Doing it here saves us from having to set LC_ALL elsewhere in this file.
 export LC_ALL = C