| 1 |
## Copyright (c) 2009 Daniel Elstner <[email protected]> |
| 2 |
## |
| 3 |
## This file is part of mm-common. |
| 4 |
## |
| 5 |
## mm-common is free software: you can redistribute it and/or modify |
| 6 |
## it under the terms of the GNU General Public License as published |
| 7 |
## by the Free Software Foundation, either version 2 of the License, |
| 8 |
## or (at your option) any later version. |
| 9 |
## |
| 10 |
## mm-common is distributed in the hope that it will be useful, |
| 11 |
## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
## GNU General Public License for more details. |
| 14 |
## |
| 15 |
## You should have received a copy of the GNU General Public License |
| 16 |
## along with mm-common. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
if MAINTAINER_MODE |
| 19 |
dist-hook: dist-changelog |
| 20 |
else |
| 21 |
dist-hook: |
| 22 |
endif |
| 23 |
|
| 24 |
.PHONY: dist-changelog |
| 25 |
|
| 26 |
dist-changelog: |
| 27 |
$(AM_V_at)if git --git-dir=$(top_srcdir)/.git --work-tree=$(top_srcdir) \ |
| 28 |
log --no-merges --date=short --pretty='tformat:%cd %an <%ae>%n%n%s%n%n%b' | \ |
| 29 |
$(SED) -e '/^[12]...-[01].-[0123]. [^<>]* <[^<>]*>$$/,/^$$/ b' \ |
| 30 |
-e '/[^ ]/,/^[ ]*$$/ !d' \ |
| 31 |
-e 's/^[ ]*/ /' \ |
| 32 |
-e 's/^[ ]*$$//' >.ChangeLog.tmp; \ |
| 33 |
then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \ |
| 34 |
else rm -f .ChangeLog.tmp; exit 1; fi |