From fd1351ed78a84cfb170972de936fc72f9992f0e3 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 25 Jul 2011 17:24:08 -0400 Subject: build: Fix pre-commit test for srcdir != builddir --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 4029d658..01680a7f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -57,9 +57,9 @@ EXTRA_DIST += \ check-local: gtester --verbose $(GTESTER_PROGS) - @test ! -d $(top_srcdir)/.git || (test -f .git/hooks/pre-commit || (echo -e "ERROR: missing \ + @test ! -d $(top_srcdir)/.git || (test -f $(top_srcdir)/.git/hooks/pre-commit || (echo -e "ERROR: missing \ pre-commit hook.\n\ncopy misc/pre-commit to .git/hooks"; false)) - @test ! -d $(top_srcdir)/.git || (test -x .git/hooks/pre-commit || (echo -e "ERROR: pre-commit \ + @test ! -d $(top_srcdir)/.git || (test -x $(top_srcdir)/.git/hooks/pre-commit || (echo -e "ERROR: pre-commit \ is not executable\n\nrun chmod +x .git/hooks/pre-commit"; false)) @echo " PEP-8 INQUISITION" @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pep8.py --repeat --exclude=config.py -- cgit v1.2.1