# HG changeset patch # User diego # Date 1280304082 0 # Node ID ba2ae47a445fd2b9522d3aaae8ab94baa5a616f9 # Parent 69eadc0c537210e0587206b672a84381b6571ae7 cosmetics: Use more compact "if .. then" shell syntax. diff -r 69eadc0c5372 -r ba2ae47a445f DOCS/xml/configure --- 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"