Mercurial > mplayer.hg
changeset 31774:ba2ae47a445f
cosmetics: Use more compact "if .. then" shell syntax.
author | diego |
---|---|
date | Wed, 28 Jul 2010 08:01:22 +0000 |
parents | 69eadc0c5372 |
children | 44a63a5a3175 |
files | DOCS/xml/configure |
diffstat | 1 files changed, 11 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/DOCS/xml/configure Wed Jul 28 06:47:50 2010 +0000 +++ b/DOCS/xml/configure Wed Jul 28 08:01:22 2010 +0000 @@ -17,15 +17,13 @@ /usr/share/docbook-xml42/catalog.xml \ /usr/share/sgml/docbook/xmlcatalog do - if test -f "$try_catalog" - then + if test -f "$try_catalog"; then catalog=$try_catalog break fi done -if test -n "$catalog" -then +if test -n "$catalog"; then echo "Found SGML catalog at $catalog" else echo "No SGML catalog found." @@ -47,15 +45,13 @@ /opt/local/share/xsl/docbook-xsl/html/chunk.xsl \ do - if test -f "$try_chunk_xsl" - then + if test -f "$try_chunk_xsl"; then chunk_xsl=$try_chunk_xsl break fi done -if test -z "$chunk_xsl" -then +if test -z "$chunk_xsl"; then chunk_xsl=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/chunk.xsl echo "Not found. Using default ($chunk_xsl)" fake_chunk_xsl=yes @@ -76,15 +72,13 @@ /opt/local/share/xsl/docbook-xsl/html/docbook.xsl \ do - if test -f "$try_docbook_xsl" - then + if test -f "$try_docbook_xsl"; then docbook_xsl=$try_docbook_xsl break fi done -if test -z "$docbook_xsl" -then +if test -z "$docbook_xsl"; then docbook_xsl=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/docbook.xsl echo "Not found. Using default ($docbook_xsl)" else @@ -132,15 +126,13 @@ /opt/local/share/xml/docbook*/*/docbookx.dtd \ /usr/share/apps/ksgmltools2/docbook/*/docbookx.dtd do - if test -f "$try_dtd" - then + if test -f "$try_dtd"; then dtd=$try_dtd break fi done -if test -z "$dtd" -then +if test -z "$dtd"; then dtd=/usr/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd echo "Not found. Using default ($dtd)." else @@ -172,13 +164,10 @@ done echo "Looking for a valid XSLT processor..." -if xsltproc --version > /dev/null 2>&1 -then - if test -z "$fake_chunk_xsl" - then +if xsltproc --version > /dev/null 2>&1; then + if test -z "$fake_chunk_xsl"; then echo "Found xsltproc. If it works, it's probably the best choice." - if test -n "$catalog" - then + if test -n "$catalog"; then xsltcommand="xsltproc --catalogs -o \$\$1 \$\$2 \$\$3" else xsltcommand="xsltproc -o \$\$1 \$\$2 \$\$3"