Blame build/dist-changelog.am

Packit Service e3b512
## Copyright (c) 2009  Daniel Elstner <daniel.kitta@gmail.com>
Packit Service e3b512
##
Packit Service e3b512
## This file is part of mm-common.
Packit Service e3b512
##
Packit Service e3b512
## mm-common is free software: you can redistribute it and/or modify
Packit Service e3b512
## it under the terms of the GNU General Public License as published
Packit Service e3b512
## by the Free Software Foundation, either version 2 of the License,
Packit Service e3b512
## or (at your option) any later version.
Packit Service e3b512
##
Packit Service e3b512
## mm-common is distributed in the hope that it will be useful,
Packit Service e3b512
## but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service e3b512
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service e3b512
## GNU General Public License for more details.
Packit Service e3b512
##
Packit Service e3b512
## You should have received a copy of the GNU General Public License
Packit Service e3b512
## along with mm-common.  If not, see <http://www.gnu.org/licenses/>.
Packit Service e3b512
Packit Service e3b512
if MAINTAINER_MODE
Packit Service e3b512
dist-hook: dist-changelog
Packit Service e3b512
else
Packit Service e3b512
dist-hook:
Packit Service e3b512
endif
Packit Service e3b512
Packit Service e3b512
.PHONY: dist-changelog
Packit Service e3b512
Packit Service e3b512
dist-changelog:
Packit Service e3b512
	$(AM_V_at)if git --git-dir=$(top_srcdir)/.git --work-tree=$(top_srcdir) \
Packit Service e3b512
		log --no-merges --date=short --pretty='tformat:%cd  %an  <%ae>%n%n%s%n%n%b' | \
Packit Service e3b512
	 $(SED)	-e '/^[12]...-[01].-[0123].  [^<>]*  <[^<>]*>$$/,/^$$/ b' \
Packit Service e3b512
		-e '/[^	 ]/,/^[	 ]*$$/ !d' \
Packit Service e3b512
		-e 's/^[	 ]*/	/' \
Packit Service e3b512
		-e 's/^[	 ]*$$//' >.ChangeLog.tmp; \
Packit Service e3b512
	then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
Packit Service e3b512
	else rm -f .ChangeLog.tmp; exit 1; fi