From 64bc798f4e29f2d6d6641d017df4bdf63cbff80a Mon Sep 17 00:00:00 2001
From: Nick Schermer <nick@xfce.org>
Date: Fri, 28 May 2010 17:45:11 +0200
Subject: [PATCH] Check for file when building docs.

---
 docs/manual/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/manual/Makefile.am b/docs/manual/Makefile.am
index 117d8f46a..cf71ad7a8 100644
--- a/docs/manual/Makefile.am
+++ b/docs/manual/Makefile.am
@@ -140,7 +140,7 @@ dist-hook: dist-check-doc doc-build.stamp
 		cp "$$file" "$(distdir)/html/"; \
 	fi; \
 	for lang in $(ALL_LINGUAS); do \
-		if test -d "$(srcdir)/html/$$lang"; then \
+		if test -d "$(srcdir)/html/$$lang/index.html"; then \
 			mkdir -p "$(distdir)/html/$$lang"; \
 			cp -t "$(distdir)/html/$$lang/" $(srcdir)/html/$$lang/*; \
 		fi \
-- 
GitLab