Author: diego Date: Wed Jul 28 07:35:15 2010 New Revision: 31836 Log: Simplify xmllint test.
Modified: trunk/DOCS/xml/configure Modified: trunk/DOCS/xml/configure ============================================================================== --- trunk/DOCS/xml/configure Wed Jul 28 07:19:36 2010 (r31835) +++ trunk/DOCS/xml/configure Wed Jul 28 07:35:15 2010 (r31836) @@ -192,23 +192,14 @@ fi echo "Searching for XML checker..." -for _try_xmllint in xmllint -do - if command -v $_try_xmllint > /dev/null 2>&1 - then - echo "Found $_try_xmllint" - if test -n "$_catalog" - then - _xmllint_command="$_try_xmllint --noout --noent --postvalid --catalogs \$*" - else - _xmllint_command="$_try_xmllint --noout --noent --postvalid \$*" - fi - break +if command -v xmllint > /dev/null 2>&1; then + echo "Found xmllint" + if test -n "$_catalog"; then + _xmllint_command="xmllint --noout --noent --postvalid --catalogs \$*" + else + _xmllint_command="xmllint --noout --noent --postvalid \$*" fi -done - -if test -z "$_xmllint_command" -then +else echo "Not found" _xmllint_command=true fi _______________________________________________ MPlayer-DOCS mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/mplayer-docs
