summaryrefslogtreecommitdiff
path: root/Makefile.cfg
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-11-15 21:02:04 +0000
committerJim Meyering <jim@meyering.net>2002-11-15 21:02:04 +0000
commit2aee9e8a9b560cd7171674172b9966369480d12e (patch)
tree51ea6c81082228be7f555ca8b0f2cc0b10cf4849 /Makefile.cfg
parentc07eca7caa7b598050b7bff1695c14ea50cf90ce (diff)
downloadcoreutils-2aee9e8a9b560cd7171674172b9966369480d12e.tar.xz
(gnu_rel_host): Define.
(url_dir_list): Choose from (alpha|ftp).gnu.org depending on whether $(VERSION) looks like a major release number.
Diffstat (limited to 'Makefile.cfg')
-rw-r--r--Makefile.cfg8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.cfg b/Makefile.cfg
index a5a9284e7..cbdfd8688 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.