Blame Scripts/Functions/Help/Texinfo/texinfo_renameEntrySection.sh

e7414c
#!/bin/bash
e7414c
#
e7414c
# texinfo_renameEntrySection.sh -- This function standardizes renaming
e7414c
# tasks related to chapter sections inside documentation manuals
e7414c
# written in texinfo format.
e7414c
#
e7414c
# Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG
e7414c
#
e7414c
# This program is free software; you can redistribute it and/or modify
e7414c
# it under the terms of the GNU General Public License as published by
e7414c
# the Free Software Foundation; either version 2 of the License, or (at
e7414c
# your option) any later version.
e7414c
#
e7414c
# This program is distributed in the hope that it will be useful, but
e7414c
# WITHOUT ANY WARRANTY; without even the implied warranty of
e7414c
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
e7414c
# General Public License for more details.
e7414c
#
e7414c
# You should have received a copy of the GNU General Public License
e7414c
# along with this program; if not, write to the Free Software
e7414c
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
e7414c
#
e7414c
# ----------------------------------------------------------------------
e7414c
# $Id$
e7414c
# ----------------------------------------------------------------------
e7414c
e7414c
function texinfo_renameEntrySection {
e7414c
e7414c
    # Copy section source entry to target location.
e7414c
    ${FLAG_BACKEND}_copyEntrySection
e7414c
e7414c
    # Delete section source entry.
e7414c
    ${FLAG_BACKEND}_deleteEntrySection
e7414c
e7414c
    # Rename menu, nodes and cross references related entries.
e7414c
    ${FLAG_BACKEND}_renameCrossReferences
e7414c
e7414c
}