[MPlayer-DOCS] r31840 - trunk/DOCS/xml/configure

diego subversion at mplayerhq.hu
Wed Jul 28 10:01:22 CEST 2010


Author: diego
Date: Wed Jul 28 10:01:22 2010
New Revision: 31840

Log:
cosmetics: Use more compact "if .. then" shell syntax.

Modified:
   trunk/DOCS/xml/configure

Modified: trunk/DOCS/xml/configure
==============================================================================
--- trunk/DOCS/xml/configure	Wed Jul 28 08:47:50 2010	(r31839)
+++ trunk/DOCS/xml/configure	Wed Jul 28 10:01:22 2010	(r31840)
@@ -17,15 +17,13 @@ for try_catalog in \
   /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 @@ for try_chunk_xsl in \
   /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 @@ for try_docbook_xsl in \
   /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 @@ for try_dtd in \
   /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 @@ EOF
 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"


More information about the MPlayer-DOCS mailing list