I have managed to solve the problem completely and incorporate the solution into my home-grown SlackBuild script. For anybody that is ever interested in the same thing below is my solution, I would be very
receptive to anybody pointing out errors in my technique:
1. Modify the configure script that sets up the xml to html process by adding the following, which are default paths in Slackware 12. Relevant sections and additions are:
echo "Searching for XML catalogs..."
for _try_catalog in \
echo "Searching for stylesheets..."
echo "Searching for html/chunk.xsl..."
for _try_chunk_xsl in \
echo "Searching for html/docbook.xsl..."
for _try_docbook_xsl in \
and save this in the working directory with the SlackBuild script. I have named mine 'configure_xml_help'.
2. Add the following section to the script. I have commented it fairly extensively:
# Create a directory for documentation:
mkdir -p $PKG/usr/doc/mplayer-$VERSION
# Move all the required documentation into it:
cp -a AUTHORS Copyright LICENSE README DOCS $PKG/usr/doc/mplayer-$VERSION
## Build the english xml help files:
# Copies my modified configure script over the default mplayer configure script:
cp $CWD/configure_xml_help $PKG/usr/doc/mplayer-$VERSION/DOCS/xml/configure
# Changes to the correct directory to run the new configure script:
# Creates a single page, English language, help file:
make html-single-en || exit 1
# Moves the created files (1 x html and 1 x css) in with the other help files:
mv $PKG/usr/doc/mplayer-$VERSION/DOCS/HTML-single/en/* $PKG/usr/doc/mplayer-$VERSION
# Remove the unwanted directories:
rm -rf $PKG/usr/doc/mplayer-$VERSION/DOCS
etc etc. I should mention again that this is for the svn
mplayer. The rc versions come with the html files already created.
Any thoughts on this one? I have not done anything quite this complex before so I have probably gone about it a very long way :-)