[beast] ChangeLog switched to auto-generated file from GIT commits
- From: Tim Janik <timj src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [beast] ChangeLog switched to auto-generated file from GIT commits
- Date: Wed, 21 Oct 2009 00:02:19 +0000 (UTC)
commit 5b47dc26e8a1752668378f02ef253d61aa1188ed
Author: Tim Janik <timj gtk org>
Date: Wed Oct 21 01:58:33 2009 +0200
ChangeLog switched to auto-generated file from GIT commits
Makefile.am | 19 +++++++++++++++++++
ChangeLog => docs/OldBeast.ChangeLog | 0
birnet/ChangeLog => docs/OldBirnet.ChangeLog | 0
bse/ChangeLog => docs/OldBse.ChangeLog | 0
doxer/ChangeLog => docs/OldDoxer.ChangeLog | 0
plugins/ChangeLog => docs/OldPlugins.ChangeLog | 0
sfi/ChangeLog => docs/OldSfi.ChangeLog | 0
7 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 953732b..aa689c9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,6 +6,8 @@ include $(top_srcdir)/Makefile.decl
SUBDIRS = . data birnet sfi bse plugins shell beast-gtk launchers library tools po tests doxer docs web
+noinst_DATA =
+
# require automake 1.9
AUTOMAKE_OPTIONS = 1.9 dist-bzip2 no-dist-gzip
@@ -39,6 +41,23 @@ check: check-recursive
@echo $(ALL_CHECKED_MSG)
@echo $(ALL_CHECKED_MSG) | sed 's/./=/g'
+# === ChangeLog ===
+LAST_COMMITID = ce584d04999a7fb9393e1cfedde2048ba73e8878
+ChangeLog: $(shell ls "$${GIT_DIR:-.git}/packed-refs" "$${GIT_DIR:-.git}/HEAD" "$${GIT_DIR:-.git}/`git symbolic-ref -q HEAD || echo HEAD`" 2>/dev/null )
+ : # Generate ChangeLog with -prefixed records
+ git log --pretty='format:%ad %an # %H (%cn)%n%n%s%n%n%b' \
+ ${LAST_COMMITID}..HEAD > xgen-$(@F)
+ : # Tab-indent ChangeLog, except for record start
+ sed 's/^/ /;s/^ //;/^[ ]*<unknown>$$/d' -i xgen-$(@F)
+ : # Kill trailing whitespaces, compress multiple trailing newlines
+ $(PYTHON) -c "import sys, re; sys.stdout.write ( \
+ re.compile (r'\n\n\n(?=^\w)', re.M).sub ('\n\n', \
+ re.compile ('^[ ]+$$', re.M).sub ('', \
+ sys.stdin.read())))" < xgen-$(@F) > xgen2-$(@F)
+ cp xgen2-$(@F) $@ && rm -f xgen-$(@F) xgen2-$(@F)
+noinst_DATA += ChangeLog
+EXTRA_DIST += ChangeLog
+
# fixup automake-1.9.6 distuninstallcheck:-rule reporting files created by update-mime-database(1)
filter_stale_uninstalled = | egrep -v '^.*/share/mime/(subclasses|globs|magic|XMLnamespaces|aliases)$$'
filter_stale_buildfiles = | egrep -v '^./report.out$$'
diff --git a/ChangeLog b/docs/OldBeast.ChangeLog
similarity index 100%
rename from ChangeLog
rename to docs/OldBeast.ChangeLog
diff --git a/birnet/ChangeLog b/docs/OldBirnet.ChangeLog
similarity index 100%
rename from birnet/ChangeLog
rename to docs/OldBirnet.ChangeLog
diff --git a/bse/ChangeLog b/docs/OldBse.ChangeLog
similarity index 100%
rename from bse/ChangeLog
rename to docs/OldBse.ChangeLog
diff --git a/doxer/ChangeLog b/docs/OldDoxer.ChangeLog
similarity index 100%
rename from doxer/ChangeLog
rename to docs/OldDoxer.ChangeLog
diff --git a/plugins/ChangeLog b/docs/OldPlugins.ChangeLog
similarity index 100%
rename from plugins/ChangeLog
rename to docs/OldPlugins.ChangeLog
diff --git a/sfi/ChangeLog b/docs/OldSfi.ChangeLog
similarity index 100%
rename from sfi/ChangeLog
rename to docs/OldSfi.ChangeLog
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]