Add post_regtest_checks check_headers_and_includes to dist_noinst_SCRIPTS.

Also allow a .git directory in check_headers_and_includes to help
people using a git mirror of valgrind/VEX svn.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13601 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/tests/Makefile.am b/tests/Makefile.am
index e323374..a68c604 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -2,6 +2,7 @@
 include $(top_srcdir)/Makefile.tool-tests.am
 
 dist_noinst_SCRIPTS = \
+	check_headers_and_includes \
 	check_isa-2_06_cap \
 	check_makefile_consistency \
 	check_dfp_cap \
@@ -14,6 +15,7 @@
 	filter_sink \
 	filter_xml_frames \
 	platform_test \
+	post_regtest_checks \
 	vg_regtest
 
 noinst_HEADERS = \
diff --git a/tests/check_headers_and_includes b/tests/check_headers_and_includes
index 2b9caf4..4a75ce8 100755
--- a/tests/check_headers_and_includes
+++ b/tests/check_headers_and_includes
@@ -49,6 +49,7 @@
 my %dirs_to_ignore = (
     ".deps" => 1,
     ".svn" => 1,
+    ".git" => 1,            # allow git mirrors of the svn repo
     ".in_place" => 1,
     "Inst" => 1,            # the nightly scripts creates this
     "VEX" => 1,