Blame Scripts/Functions/Help/Backends/Docbook/docbook_updateOutputFileXhtml.sh

6b2887
#!/bin/bash
6b2887
#
6b2887
# docbook_updateOutputFileXhtml.sh -- This function uses the xsltproc
6b2887
# for transforming the repository documentation manual from DocBook to
6b2887
# Xhtml.
6b2887
#
6b2887
# Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG
6b2887
#
6b2887
# This program is free software; you can redistribute it and/or modify
6b2887
# it under the terms of the GNU General Public License as published by
6b2887
# the Free Software Foundation; either version 2 of the License, or (at
6b2887
# your option) any later version.
6b2887
#
6b2887
# This program is distributed in the hope that it will be useful, but
6b2887
# WITHOUT ANY WARRANTY; without even the implied warranty of
6b2887
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6b2887
# General Public License for more details.
6b2887
#
6b2887
# You should have received a copy of the GNU General Public License
6b2887
# along with this program; if not, write to the Free Software
6b2887
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
6b2887
#
6b2887
# ----------------------------------------------------------------------
6b2887
# $Id$
6b2887
# ----------------------------------------------------------------------
6b2887
6b2887
function docbook_updateOutputFileXhtml {
6b2887
6b2887
    # Print action message.
6b2887
    cli_printMessage "${MANUAL_BASEFILE}.xhtml" --as-updating-line
6b2887
6b2887
    # Verify temporal directory and create it if doesn't exist.
6b2887
    if [[ ! -d ${MANUAL_BASEFILE}.xhtml ]];then
6b2887
        mkdir ${MANUAL_BASEFILE}.xhtml
6b2887
    fi
6b2887
6b2887
    # Execute docbook2pdf convertion.
6b2887
    xsltproc /usr/share/sgml/docbook/xsl-stylesheets/xhtml/chunk.xsl \
6b2887
    --output ${MANUAL_BASEFILE}.xhtml/ ${MANUAL_BACKEND}/${MANUAL_NAME}.docbook 2> /dev/null
6b2887
6b2887
}