Blame Scripts/Functions/Prepare/prepare_updateManuals.sh

c01e64
#!/bin/bash
c01e64
#
8cbdc0
# prepare_updateManuals.sh -- This option initializes documentation files
c01e64
# inside the working copy. When you provide this option, the
c01e64
# centos-art.sh script renders all documentation manuals from their
c01e64
# related source files so you can read them nicely.
c01e64
#
c01e64
# Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG
c01e64
#
c01e64
# This program is free software; you can redistribute it and/or modify
c01e64
# it under the terms of the GNU General Public License as published by
c01e64
# the Free Software Foundation; either version 2 of the License, or (at
c01e64
# your option) any later version.
c01e64
#
c01e64
# This program is distributed in the hope that it will be useful, but
c01e64
# WITHOUT ANY WARRANTY; without even the implied warranty of
c01e64
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
c01e64
# General Public License for more details.
c01e64
#
c01e64
# You should have received a copy of the GNU General Public License
c01e64
# along with this program; if not, write to the Free Software
c01e64
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
c01e64
#
c01e64
# ----------------------------------------------------------------------
c01e64
# $Id$
c01e64
# ----------------------------------------------------------------------
c01e64
8cbdc0
function prepare_updateManuals {
c01e64
db164c
    local RELEASE=$(cat /etc/redhat-release | gawk '{ print $3 }')
db164c
c01e64
    # The CentOS Artwork Repository User's Guide in docbook format.
c01e64
    ${CLI_BASEDIR}/${CLI_PROGRAM}.sh render \
db164c
        trunk/Manuals/Tcar-ug --filter="tcar-ug" \
db164c
        --dont-commit-changes
db164c
db164c
    # The CentOS Distribution Notes
db164c
    ${CLI_BASEDIR}/${CLI_PROGRAM}.sh render \
db164c
        trunk/Manuals/Distro --releasever="${RELEASE}" \
c01e64
        --dont-commit-changes
c01e64
c01e64
    # The CentOS Artwork Repository User's Guide in texinfo format.
c01e64
    ${CLI_BASEDIR}/${CLI_PROGRAM}.sh help --update \
db164c
        trunk/Manuals/Tcar-fs \
c01e64
        --dont-commit-changes
c01e64
c01e64
}