Blame Scripts/Modules/Prepare/Modules/Documents/documents.sh

Alain Reguera Delgado 733076
#!/bin/bash
Alain Reguera Delgado 733076
######################################################################
Alain Reguera Delgado 733076
#
Alain Reguera Delgado 733076
#   documents.sh -- This function renders all documentation files
Alain Reguera Delgado 733076
#   inside the repository using the render module.
Alain Reguera Delgado 733076
#
Alain Reguera Delgado 733076
#   Written by:
Alain Reguera Delgado 733076
#   * Alain Reguera Delgado <al@centos.org.cu>, 2009-2013
Alain Reguera Delgado 733076
#
Alain Reguera Delgado 733076
# Copyright (C) 2009-2013 The CentOS Artwork SIG
Alain Reguera Delgado 733076
#
Alain Reguera Delgado 733076
# This program is free software; you can redistribute it and/or modify
Alain Reguera Delgado 733076
# it under the terms of the GNU General Public License as published by
Alain Reguera Delgado 733076
# the Free Software Foundation; either version 2 of the License, or (at
Alain Reguera Delgado 733076
# your option) any later version.
Alain Reguera Delgado 733076
#
Alain Reguera Delgado 733076
# This program is distributed in the hope that it will be useful, but
Alain Reguera Delgado 733076
# WITHOUT ANY WARRANTY; without even the implied warranty of
Alain Reguera Delgado 733076
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Alain Reguera Delgado 733076
# General Public License for more details.
Alain Reguera Delgado 733076
#
Alain Reguera Delgado 733076
# You should have received a copy of the GNU General Public License
Alain Reguera Delgado 733076
# along with this program; if not, write to the Free Software
Alain Reguera Delgado 733076
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Alain Reguera Delgado 733076
#
Alain Reguera Delgado 733076
######################################################################
Alain Reguera Delgado 733076
Alain Reguera Delgado 733076
function documents {
Alain Reguera Delgado 733076
Alain Reguera Delgado 733076
    # Define base location where configuration files will be searched
Alain Reguera Delgado 733076
    # from. You can provide more than one location here.
Alain Reguera Delgado 733076
    local DIRS='/'
Alain Reguera Delgado 733076
Alain Reguera Delgado 733076
    # Define the name of the option you want to look configuration
Alain Reguera Delgado 733076
    # files for.
Alain Reguera Delgado 733076
    local NAME='render-type'
Alain Reguera Delgado 733076
Alain Reguera Delgado 733076
    # Define the value of the option you want to look configuration
Alain Reguera Delgado 733076
    # files for.
Alain Reguera Delgado 733076
    local VALUE='asciidoc'
Alain Reguera Delgado 733076
Alain Reguera Delgado 733076
    # Render configuration files that match specified options and
Alain Reguera Delgado 733076
    # values in the search directories.
Alain Reguera Delgado 733076
    prepare_setRenderEnvironment -o "${NAME}" -v "${VALUE}" "${DIRS}" 
Alain Reguera Delgado 733076
Alain Reguera Delgado 733076
}