bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: announce-gen -- not flexible enough


From: Alfred M. Szmidt
Subject: Re: announce-gen -- not flexible enough
Date: Sun, 13 Dec 2009 07:45:05 -0500

Ping?

>From 00c33e8b07ae06d2c09394c3cf2892063f0c2fc6 Mon Sep 17 00:00:00 2001
From: Alfred M. Szmidt <address@hidden>
Date: Sat, 5 Dec 2009 20:44:20 +0100
Subject: [PATCH] Allow for per-project post-release administrative tasks.

---
 ChangeLog    |    8 ++++++++
 top/maint.mk |   10 +++++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3c01809..900736b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-12-05  Alfred M. Szmidt  <address@hidden>
+
+       * top/maint.mk (alpha, beta, stable): Split out project specific
+       rules into `default-post-release-administrivia'.
+       (post-release-hook): New variable.
+       (post-release-administrivia, default-post-release-administrivia):
+       New targets.
+
 2009-12-05  Bruno Haible  <address@hidden>
 
        * lib/progname.h (set_program_name): Clarify specification.
diff --git a/top/maint.mk b/top/maint.mk
index 1ed1541..262a69f 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -82,6 +82,9 @@ endif
 today = $(shell date +%Y-%m-%d)
 news-check-regexp ?= '^\*.* $(VERSION_REGEXP) \($(today)\)'
 
+# Override this in cfg.mk if you have different post-release procedures.
+post-release-hook ?= default-post-release-administrivia
+
 # 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
@@ -761,12 +764,17 @@ alpha beta stable: $(local-check) writable-files 
no-submodule-changes
        $(MAKE) news-check
        $(MAKE) distcheck
        $(MAKE) dist XZ_OPT=-9ev
+       $(MAKE) post-release-administrivia
+       $(MAKE) -s emit_upload_commands RELEASE_TYPE=$@
+
+post-release-administrivia: $(post-release-hook)
+
+default-post-release-administrivia:
        $(MAKE) -s announcement RELEASE_TYPE=$@ > /tmp/announce-$(my_distdir)
        if test -d $(release_archive_dir); then                 \
          ln $(rel-files) $(release_archive_dir);               \
          chmod a-w $(rel-files);                               \
        fi
-       $(MAKE) -s emit_upload_commands RELEASE_TYPE=$@
        echo $(VERSION) > $(prev_version_file)
        $(MAKE) update-NEWS-hash
        perl -pi -e '$$. == 3 and print "$(noteworthy)\n\n\n"' NEWS
-- 
1.6.5.2









reply via email to

[Prev in Thread] Current Thread [Next in Thread]