Commit 70f620e7 authored by Rafaël Carré's avatar Rafaël Carré

Copy the changelogs if they exist instead of generating them with git

Fix make distcheck
parent 722517aa
...@@ -50,11 +50,15 @@ EXTRA_DIST = \ ...@@ -50,11 +50,15 @@ EXTRA_DIST = \
DISTCLEANFILES = $(CHANGELOGS) DISTCLEANFILES = $(CHANGELOGS)
$(CHANGELOGS): Makefile.am $(CHANGELOGS): Makefile.am
y="$$(echo "$@" | sed -e 's,ChangeLog-,,')" ; \ if test -f "$(top_srcdir)/doc/$@"; then \
git --git-dir=$(top_srcdir)/.git log\ cp "$(top_srcdir)/doc/$@" "$@" ; \
--since="$$y-01-01" \ else \
--until="$$y-12-31 23:00:00 -0100" \ y="$$(echo "$@" | sed -e 's,ChangeLog-,,')" ; \
> "$@" git --git-dir=$(top_srcdir)/.git log \
--since="$$y-01-01" \
--until="$$y-12-31 23:00:00 -0100" \
> "$@" ; \
fi
# This one needs to be rebuilt all the time :) # This one needs to be rebuilt all the time :)
.PHONY: ChangeLog-2008 .PHONY: ChangeLog-2008
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment