[pygobject] Add release-news make rule
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Add release-news make rule
- Date: Sun, 29 Apr 2012 19:34:33 +0000 (UTC)
commit 3551462a429ef30274fa01fc8111da5025f9c342
Author: Martin Pitt <martinpitt gnome org>
Date: Sun Apr 29 20:17:47 2012 +0200
Add release-news make rule
This produces a commit log since the previous release in our current NEWS
format. This does not currently wrap long lines automatically, though.
Do include bug numbers from now on, as they are very useful.
Makefile.am | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 39c6177..35e4eb1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -95,8 +95,16 @@ release-tag:
$$ROOT \
svn+ssh://johan svn gnome org/svn/pygobject/tags/PYGOBJECT_$$SVNVERSION
-
-.PHONY: ChangeLog
+release-news:
+ printf "%-8s%s\n" "$(VERSION)" "`LC_TIME=C date '+%d-%b-%Y'`" > NEWS.tmp
+ last=`head -n1 NEWS | cut -f1 -d' '`; \
+ git log --format='format: - %s (%aN)%n%b' 3.1.92.. | \
+ sed -n '/^ -/ p; /bugzilla.gnome.org/ { s/^.*id=\([0-9]\+\).*$$/ (#\1)/; p}' >> NEWS.tmp
+ echo >> NEWS.tmp
+ cat NEWS >> NEWS.tmp
+ mv NEWS.tmp NEWS
+
+.PHONY: ChangeLog release-news
ChangeLog:
@echo Creating $@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]