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