Remove external directory git cruft from the dist tarball
authorMarek Habersack <grendel@twistedcode.net>
Wed, 18 Jul 2012 12:06:34 +0000 (14:06 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Wed, 18 Jul 2012 12:07:21 +0000 (14:07 +0200)
Makefile.am

index eef2c3800e13d7ee5d8401d60ca5aa125c01f0fc..7d94e380761755769e0bf8d92e802577401ea6ef 100644 (file)
@@ -43,6 +43,7 @@ GIT_DIR ?= $(srcdir)/.git
 dist-hook:
        test -d $(distdir)/mcs || mkdir $(distdir)/mcs
        d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
+       rm -rf `find $(top_distdir)/external -path '*\.git' -and -type d`
 # Disable this for now because it is very slow and causes wrench to timeout:
 #      test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry