diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-11-16 15:16:58 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-11-16 15:16:58 +0100 |
commit | 1748adda068bffac00fd8c67693a3e003c36d06d (patch) | |
tree | e83673b12010494510b49d47dacd105e1372a522 | |
parent | 35fbed98e9ccf7397b129aaa23d932dd64a488a3 (diff) | |
download | libayatana-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.am | 46 |
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 |