[4.0] 010aac8 Remove any superflous non rst/html from tarball.

Lasse Karstensen lkarsten at varnish-software.com
Tue Jun 24 11:31:51 CEST 2014

commit 010aac8abadfff3ebe227d1011bd8ba8d8acc289
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date:   Mon May 19 13:28:44 2014 +0200

    Remove any superflous non rst/html from tarball.
    When we in the future introduce something new and shiny here, don't
    automatically start putting it into the tarball release.
    This may seem a bit backward, the main idea is to avoid hardcoding
    the section/subdirectory names yet another place.

diff --git a/doc/sphinx/Makefile.am b/doc/sphinx/Makefile.am
index 22dd894..f1b9bfc 100644
--- a/doc/sphinx/Makefile.am
+++ b/doc/sphinx/Makefile.am
@@ -105,7 +105,7 @@ dist-hook:
 	rm -rf $(BUILDDIR)/doctrees
 	cp -r $(BUILDDIR) $(distdir)
 # Remove any extra non-rst files we may have copied over.
-	find $(distdir) ! -type f -a -name \*.rst -ls
+	find $(distdir) -mindepth 2 -type f ! -name \*.rst | grep -v '/build/' | xargs rm -f
 	rm -rf $(BUILDDIR)

More information about the varnish-commit mailing list