aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-11-16 15:16:58 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-11-16 15:16:58 +0100
commit1748adda068bffac00fd8c67693a3e003c36d06d (patch)
treee83673b12010494510b49d47dacd105e1372a522
parent35fbed98e9ccf7397b129aaa23d932dd64a488a3 (diff)
downloadlibayatana-indicator-1748adda068bffac00fd8c67693a3e003c36d06d.tar.gz
libayatana-indicator-1748adda068bffac00fd8c67693a3e003c36d06d.tar.bz2
libayatana-indicator-1748adda068bffac00fd8c67693a3e003c36d06d.zip
Makefile.am: Replace dist-hook for Bazaar based VCS repo against dist-hook for a Git based VCS repo.
-rw-r--r--Makefile.am46
1 files changed, 22 insertions, 24 deletions
diff --git a/Makefile.am b/Makefile.am
index 24d3cd8..1d05fac 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,32 +18,30 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-deprecations
DISTCLEANFILES = \
libayatana-indicator-*.tar.gz
-
dist-hook:
- @if test -d "$(top_srcdir)/.bzr"; \
- then \
- echo Creating ChangeLog && \
- ( cd "$(top_srcdir)" && \
- echo '# Generated by Makefile. Do not edit.'; echo; \
- $(ac_aux_dir)/missing --run bzr log --gnu-changelog ) > ChangeLog.tmp \
- && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
- || (rm -f ChangeLog.tmp; \
- echo Failed to generate ChangeLog >&2 ); \
- else \
- echo Failed to generate ChangeLog: not a branch >&2; \
+ @if test -d "$(top_srcdir)/.git"; \
+ then \
+ echo Creating ChangeLog && \
+ ( cd "$(top_srcdir)" && \
+ echo '# Generated by Makefile. Do not edit.'; echo; \
+ $(top_srcdir)/missing --run git --no-pager log --since "1970" --format="%ai %aN (%h) %n%n%x09*%w(68,0,10) %s%d%n") > ChangeLog.tmp \
+ && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
+ || (rm -f ChangeLog.tmp; \
+ echo Failed to generate ChangeLog >&2 ); \
+ else \
+ echo Failed to generate ChangeLog: not a branch >&2; \
fi
- @if test -d "$(top_srcdir)/.bzr"; \
- then \
- echo Creating AUTHORS && \
- ( cd "$(top_srcdir)" && \
- echo '# Generated by Makefile. Do not edit.'; echo; \
- $(ac_aux_dir)/missing --run bzr log --long --levels=0 | grep -e "^\s*author:" -e "^\s*committer:" | cut -d ":" -f 2 | cut -d "<" -f 1 | sort -u) > AUTHORS.tmp \
- && mv -f AUTHORS.tmp $(top_distdir)/AUTHORS \
- || (rm -f AUTHORS.tmp; \
- echo Failed to generate AUTHORS >&2 ); \
- else \
- echo Failed to generate AUTHORS: not a branch >&2; \
+ @if test -d "$(top_srcdir)/.git"; \
+ then \
+ echo Creating AUTHORS && \
+ ( cd "$(top_srcdir)" && \
+ echo '# Generated by Makefile. Do not edit.'; echo; \
+ $(top_srcdir)/missing --run git log | grep -e "^Author:" -e "Committer:" | cut -d ":" -f 2 | cut -d "<" -f 1 | sort -u) > AUTHORS.tmp \
+ && mv -f AUTHORS.tmp $(top_distdir)/AUTHORS \
+ || (rm -f AUTHORS.tmp; \
+ echo Failed to generate AUTHORS >&2 ); \
+ else \
+ echo Failed to generate AUTHORS: not a branch >&2; \
fi
-
include $(top_srcdir)/Makefile.am.coverage