From 7a58628ec4dfbd07e2c4099f9e2e290faaff8b72 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Sun, 24 Feb 2008 23:35:34 -0300 Subject: [PATCH] Take git diff from src-dir for test target. --- GNUmakefile.in | 2 +- make/lysdoc-targets.make | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index 52e4a1b314..9f50bd0707 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -209,7 +209,7 @@ test: $(MAKE) -C input/regression/musicxml out=test local-test test-baseline: - @if test -d .git ; then \ + @if test -d .git ; then \ $(if $(shell git diff), echo "commit before base lining" && false,true) ; \ fi $(MAKE) diff --git a/make/lysdoc-targets.make b/make/lysdoc-targets.make index 28b84beee2..b216c11bde 100644 --- a/make/lysdoc-targets.make +++ b/make/lysdoc-targets.make @@ -12,9 +12,9 @@ local-test: rm -f $(outdir)/collated-files.html if test -d $(top-src-dir)/.git ; then \ echo -e 'HEAD is:\n\n\t' ; \ - git log --max-count=1 --pretty=oneline ;\ + (cd $(top-src-dir) && git log --max-count=1 --pretty=oneline ) ;\ echo -e '\n\n\n' ; \ - git diff ; \ + (cd $(top-src-dir) && git diff ) ; \ fi > $(outdir)/tree.gittxt $(MAKE) LILYPOND_BOOK_LILYPOND_FLAGS="-dbackend=eps --formats=ps $(LILYPOND_JOBS) -dseparate-log-files -dinclude-eps-fonts -dgs-load-lily-fonts --header=texidoc -I $(top-src-dir)/input/manual -ddump-profile -dcheck-internal-types -ddump-signatures -danti-alias-factor=1" LILYPOND_BOOK_VERBOSE= $(outdir)/collated-files.html rsync -L -a --exclude 'out-*' --exclude 'out' --exclude mf --exclude source --exclude mf $(top-build-dir)/out/share $(outdir) -- 2.39.5