[rygel] build: Generate ChangeLog from git on make dist
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] build: Generate ChangeLog from git on make dist
- Date: Sat, 16 Apr 2011 18:05:55 +0000 (UTC)
commit 7a768b620c1889f8e854dbab9320bb9fa9e17c4c
Author: Jens Georg <mail jensge org>
Date: Sat Apr 16 17:59:09 2011 +0300
build: Generate ChangeLog from git on make dist
Makefile.am | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 5df20af..3092a5a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,6 +19,18 @@ $(top_srcdir)/.version:
echo $(VERSION) > $ -t && mv $ -t $@
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version
+ @if test -d "$(srcdir)/.git"; \
+ then \
+ echo Creating ChangeLog && \
+ ( cd "$(top_srcdir)" && \
+ echo '# Generated by Makefile. Do not edit.'; echo; \
+ git log --stat ) > ChangeLog.tmp \
+ && mv -f ChangeLog.tmp $(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
vala-clean:
rm -f `find . -name "*.stamp"`
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]