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