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

reimar subversion at mplayerhq.hu
Tue Mar 17 12:47:28 CET 2009


Author: reimar
Date: Tue Mar 17 12:47:27 2009
New Revision: 28980

Log:
Avoid an error at the end of chunked HTML doc generation.
Since doctype was added, xsltproc always needs a target _file_.

Modified:
   trunk/DOCS/xml/configure

Modified: trunk/DOCS/xml/configure
==============================================================================
--- trunk/DOCS/xml/configure	Tue Mar 17 00:03:18 2009	(r28979)
+++ trunk/DOCS/xml/configure	Tue Mar 17 12:47:27 2009	(r28980)
@@ -186,11 +186,13 @@ then
   if test -z "$_fake_chunk_xsl"
   then
     echo "Found xsltproc. If it works, it's probably the best choice."
+    # HACK: xslt always need a target file if a doctype is set
+    _xsltcommand="OUTPUT=\"\$1\"; if test -d \"\$OUTPUT\" ; then OUTPUT=\"$OUTPUT/dummy.html\" ; fi;"
     if test -n "$_catalog"
     then
-      _xsltcommand="xsltproc --catalogs -o \$1 \$2 \$3"
+      _xsltcommand="$_xsltcommand xsltproc --catalogs -o \$OUTPUT \$2 \$3"
     else
-      _xsltcommand="xsltproc -o \$1 \$2 \$3"
+      _xsltcommand="$_xsltcommand xsltproc -o \$OUTPUT \$2 \$3"
     fi
   else
     echo "Found xsltproc but no stylesheets on your system."



More information about the MPlayer-DOCS mailing list