comparison DOCS/xml/configure @ 31770:abfc5eb7af04

Simplify xmllint test.
author diego
date Wed, 28 Jul 2010 05:35:15 +0000
parents f5b66007c5e1
children 75398f13e9f6
comparison
equal deleted inserted replaced
31769:c6e58ec31959 31770:abfc5eb7af04
190 fi 190 fi
191 fi 191 fi
192 192
193 193
194 echo "Searching for XML checker..." 194 echo "Searching for XML checker..."
195 for _try_xmllint in xmllint 195 if command -v xmllint > /dev/null 2>&1; then
196 do 196 echo "Found xmllint"
197 if command -v $_try_xmllint > /dev/null 2>&1 197 if test -n "$_catalog"; then
198 then 198 _xmllint_command="xmllint --noout --noent --postvalid --catalogs \$*"
199 echo "Found $_try_xmllint" 199 else
200 if test -n "$_catalog" 200 _xmllint_command="xmllint --noout --noent --postvalid \$*"
201 then 201 fi
202 _xmllint_command="$_try_xmllint --noout --noent --postvalid --catalogs \$*" 202 else
203 else
204 _xmllint_command="$_try_xmllint --noout --noent --postvalid \$*"
205 fi
206 break
207 fi
208 done
209
210 if test -z "$_xmllint_command"
211 then
212 echo "Not found" 203 echo "Not found"
213 _xmllint_command=true 204 _xmllint_command=true
214 fi 205 fi
215 206
216 cat > xml.mak << EOF 207 cat > xml.mak << EOF