From 899216e1755407421cdf5bb1e5dff185b5885540 Mon Sep 17 00:00:00 2001 From: Andrew Bayer Date: Fri, 22 Jul 2011 20:04:16 +0000 Subject: [PATCH] SQOOP-84. Fix documentation build error under CentOS. Disable xmlto validation on CentOS. From: Aaron Kimball git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149974 13f79535-47bb-0310-9956-ffa450edef68 --- src/docs/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/docs/Makefile b/src/docs/Makefile index f35a1914..201fd6f8 100644 --- a/src/docs/Makefile +++ b/src/docs/Makefile @@ -18,6 +18,11 @@ BUILD_DIR=$(BUILDROOT)/docs VERSION=Unknown +# Building documentation under CentOS causes xmlto to have issues +# with validation. Disable this step. +VALIDATION=$(shell ( lsb_release -d | grep CentOS > /dev/null 2>&1 ) \ + && echo "--skip-validation" ) + all: man userguide devguide supportfiles index userguide: $(BUILD_DIR)/SqoopUserGuide.html @@ -53,7 +58,7 @@ man: $(MANPAGES) %.1.gz : %.txt asciidoc --unsafe -b docbook -d manpage -a "author=Sqoop Team" $< - xmlto man $*.xml -o man + xmlto man $(VALIDATION) $*.xml -o man gzip $*.1 rm $*.xml mkdir -p $(BUILD_DIR)