aboutsummaryrefslogtreecommitdiffhomepage
path: root/DOCS/xml/configure
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-17 11:47:27 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-17 11:47:27 +0000
commitaa3f9662f1e43b588c5df012272f16c71b9ab4aa (patch)
tree9a21e03eaecc1797985cafb849b8f6648cffd901 /DOCS/xml/configure
parent02c87f0578bcb21a1057ec37dcfa7f2b43960f79 (diff)
Avoid an error at the end of chunked HTML doc generation.
Since doctype was added, xsltproc always needs a target _file_. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28980 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS/xml/configure')
-rwxr-xr-xDOCS/xml/configure6
1 files changed, 4 insertions, 2 deletions
diff --git a/DOCS/xml/configure b/DOCS/xml/configure
index a61f564fc1..94f41690be 100755
--- a/DOCS/xml/configure
+++ b/DOCS/xml/configure
@@ -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."