maint.mk: allow the default upload destination dir to be overridden
authorJim Meyering <meyering@redhat.com>
Sun, 14 Feb 2010 15:42:22 +0000 (16:42 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 14 Feb 2010 15:43:06 +0000 (16:43 +0100)
* top/maint.mk (upload_dest_dir_): Define with a default that
preserves the status quo.
(emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
Reported by Peter Simons.

ChangeLog
top/maint.mk

index 0ebee71..8fdabc2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-02-14  Jim Meyering  <meyering@redhat.com>
 
+       maint.mk: allow the default upload destination dir to be overridden
+       * top/maint.mk (upload_dest_dir_): Define with a default that
+       preserves the status quo.
+       (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
+       Reported by Peter Simons.
+
        maint.mk: prohibit inclusion of "hash.h" without_use
        * top/maint.mk (sc_prohibit_hash_without_use): New rule.
 
index a623d02..cfe0fd7 100644 (file)
@@ -798,11 +798,12 @@ announcement: NEWS ChangeLog $(rel-files)
 ftp-gnu = ftp://ftp.gnu.org/gnu
 www-gnu = http://www.gnu.org
 
+upload_dest_dir_ ?= $(PACKAGE)
 emit_upload_commands:
        @echo =====================================
        @echo =====================================
        @echo "$(build_aux)/gnupload $(GNUPLOADFLAGS) \\"
-       @echo "    --to $(gnu_rel_host):$(PACKAGE) \\"
+       @echo "    --to $(gnu_rel_host):$(upload_dest_dir_) \\"
        @echo "  $(rel-files)"
        @echo '# send the ~/announce-$(my_distdir) e-mail'
        @echo =====================================