5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-19 02:10:54 +08:00

SQOOP-84. Fix documentation build error under CentOS.

Disable xmlto validation on CentOS.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149974 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Bayer 2011-07-22 20:04:16 +00:00
parent 2ba041796e
commit 899216e175

View File

@ -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)