From 7d1d281daa5ff4e1661ac9fe1e3b30035fcf2542 Mon Sep 17 00:00:00 2001 From: Mark Probst Date: Thu, 5 Aug 2010 00:13:06 +0200 Subject: [PATCH] [dist] Only run the commit-to-changelog script if there's a repository. Since "make dist" should also work from a tarball we must only call the commit-to-changelog script if there's a git repository present. If we're already in a disted tree, the script has already run. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 91bdc45c7b7..beeda8e3af5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,7 +27,7 @@ DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false dist-hook: test -d $(distdir)/mcs || mkdir $(distdir)/mcs d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive - ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry + test ! -d .git || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry pkgconfigdir = $(libdir)/pkgconfig noinst_DATA = mono-uninstalled.pc -- 2.11.4.GIT