diff options
author | Johan Dahlin <johan@gnome.org> | 2010-09-13 10:33:06 -0300 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-09-13 10:33:06 -0300 |
commit | df90bd17c3f48a7b7bbfb00a9167176b08d366a8 (patch) | |
tree | fff7458b03baa7b7d63c68630f2ca518871c9766 /Makefile.am | |
parent | edaeabf31da10aa8693641d1ffeec6cb7d34d0c0 (diff) | |
download | gobject-introspection-df90bd17c3f48a7b7bbfb00a9167176b08d366a8.tar.gz |
Do not require .git to be present
If .git is not present, do not require the pre-commit
hook to be present either
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index 9904c395..78187eb7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -42,10 +42,10 @@ upload-release: $(distdir).tar.gz ssh gnome.org install-module $(distdir).tar.gz check-local: - @test -f .git/hooks/pre-commit || (echo -e "ERROR: missing \ - pre-commit hook.\n\ncopy misc/pre-commit to .git/hooks"; false) - @test -x .git/hooks/pre-commit || (echo -e "ERROR: pre-commit \ - is not executable\n\nrun chmod +x .git/hooks/pre-commit"; false) + @test ! -d $(top_srcdir)/.git || (test -f .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 \ + 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 @echo " CHECK Pyflakes" |