summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-07-25 17:24:08 -0400
committerColin Walters <walters@verbum.org>2011-07-27 09:12:17 -0400
commitfd1351ed78a84cfb170972de936fc72f9992f0e3 (patch)
treec436b1b785698b0b88200d1994e986b0e9da84ad
parentb3968c6d7caeaf8ab324fc8e94424a4cbd1c9a85 (diff)
downloadgobject-introspection-fd1351ed78a84cfb170972de936fc72f9992f0e3.tar.gz
build: Fix pre-commit test for srcdir != builddir
-rw-r--r--Makefile.am4
1 files 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