mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 10:17:31 +00:00
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
This commit is contained in:
parent
02c87f0578
commit
aa3f9662f1
6
DOCS/xml/configure
vendored
6
DOCS/xml/configure
vendored
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user