[vlc-devel] commit: Don't attempt to create ChangeLogs if not in a git-tree. ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Mar 31 21:14:39 CEST 2008
vlc | branch: 0.8.6-bugfix | Rémi Denis-Courmont <rem at videolan.org> | Mon Mar 31 19:40:48 2008 +0300| [df6829e670fcb85ed64bcb066c2d2752b45f3adf]
Don't attempt to create ChangeLogs if not in a git-tree.
There is no need to copy the files in that case thanks to VPATH.
That assumes you are using a source tarball then - if not, you are
screwed anywhow.
(cherry picked from commit 16402c26dec1c83fc096f5c083c70c785139a720)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df6829e670fcb85ed64bcb066c2d2752b45f3adf
---
doc/Makefile.am | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 6c1989e..91b5337 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -50,11 +50,16 @@ 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 -d "$(top_srcdir)/.git"; then \
+ 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
+#
+#distclean-hook:
+# test "$(srcdir)" = "$(builddir)" || rm -f -- $(CHANGELOGS)
More information about the vlc-devel
mailing list