From 7b94d2ff3f5ac50d96673ac578856ec4cf762c47 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 31 Mar 2008 17:45:49 +0200 Subject: [PATCH] Copy the changelogs if they exist instead of generating them with git Fix make distcheck (cherry picked from commit 70f620e7f94eb02fc6f5eda47599ae5354c12483) --- doc/Makefile.am | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index 6c1989e3ec..036a61c613 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -50,11 +50,15 @@ EXTRA_DIST = \ DISTCLEANFILES = $(CHANGELOGS) $(CHANGELOGS): Makefile.am - 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" \ - > "$@" + if test -f "$(top_srcdir)/doc/$@"; then \ + cp "$(top_srcdir)/doc/$@" "$@" ; \ + else \ + 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 :) .PHONY: ChangeLog-2008 -- 2.39.2