[gtk-doc] dist: update HACKING for git and add CHangeLog rule



commit a78ea651dd996e6bac53a1364aeab31370a4e6c8
Author: Stefan Kost <ensonic users sf net>
Date:   Fri Dec 18 10:34:16 2009 +0200

    dist: update HACKING for git and add CHangeLog rule

 HACKING     |   47 ++++++++++++++++++++++++++---------------------
 Makefile.am |   14 ++++++++++++++
 2 files changed, 40 insertions(+), 21 deletions(-)
---
diff --git a/HACKING b/HACKING
index 0e0031d..d77d57a 100644
--- a/HACKING
+++ b/HACKING
@@ -11,31 +11,36 @@ Releasing
 
 http://live.gnome.org/MaintainersCorner/Releasing
 
-~/projects/gstreamer-0.10/www/bin/bugzilla general 1.9 gtk-doc >RELNOTES.fixes.xml
-./xml2txt.sh
-# copy to ChangeLog-1.9 and use 
-moap cl contributors
-# moap cl -C ChangeLog-1.9 contributors
-add then to NEWS
-
-make dist
-svn cp svn+ssh://<user>@svn.gnome.org/svn/gtk-doc/trunk svn+ssh://<user>@svn.gnome.org/svn/gtk-doc/tags/GTK_DOC_1_9/
-
-scp gtk-doc-1.9.tar.gz <user>@master.gnome.org:
-scp NEWS <user>@master.gnome.org:gtk-doc-1.9.news
-scp ChangeLog-1.9 <user>@master.gnome.org:gtk-doc-1.9.changes
-ssh <user>@master.gnome.org
-install-module gtk-doc-<ver>.tar.gz
-exit
-
-bump versions in:
-  add delimiter to ChangeLog
+- bump release date in:
+  help/manual/C/gtk-doc-manual.xml
+
+- update NEWS
+  ./bugzilla.py general 1.9 gtk-doc >RELNOTES.txt
+  git log --summary --format=short GTK_DOC_1_11.. | grep "Author:" | sed 's/Author:\(.*\)\ <.*>/\1/' | sort | uniq >>RELNOTES.txt
+  add then copy to NEWS
+
+- dist
+  make dist
+
+- tag
+  git tag -a GTK_DOC_1_9
+  git push origin GTK_DOC_1_9
+
+- release
+  scp gtk-doc-1.9.tar.gz <user>@master.gnome.org:
+  scp NEWS <user>@master.gnome.org:gtk-doc-1.9.news
+  scp ChangeLog-1.9 <user>@master.gnome.org:gtk-doc-1.9.changes
+  ssh <user>@master.gnome.org
+  install-module gtk-doc-<ver>.tar.gz
+  exit
+
+- bump versions in:
   configure.in
   help/manual/C/gtk-doc-manual.xml
 
-update web-pages (gtk-web/gtk-doc)
+- update web-pages (gtk-web/gtk-doc)
 
-if we want a icon on the newsfeed, we should copy a icon like on
+- if we want a icon on the newsfeed, we should copy a icon like on
   http://ftp.acc.umu.se/pub/GNOME/sources/rhythmbox/rhythmbox.png
   e.g. /usr/share/icons/hicolor/48x48/apps/devhelp.png
   
diff --git a/Makefile.am b/Makefile.am
index b8be63e..cdb1c28 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -107,3 +107,17 @@ MAINTAINERCLEANFILES = \
 DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper
 DISTCLEANFILES = gnome-doc-utils.make
 -include $(top_srcdir)/git.mk
+
+dist-hook:
+	@if test -d "$(srcdir)/.git"; \
+	then \
+		echo Creating ChangeLog && \
+		( cd "$(top_srcdir)" && \
+		  echo '# Generated by Makefile. Do not edit.'; echo; \
+		  $(top_srcdir)/missing --run git log --stat ) > ChangeLog.tmp \
+		&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
+		|| ( rm -f ChangeLog.tmp ; \
+		  echo Failed to generate ChangeLog >&2 ); \
+	else \
+		echo A git clone is required to generate a ChangeLog >&2; \
+	fi



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