Blame Automation/Scripts/tcar_printHelp.sh

Alain Reguera Delgado ddf7d2
#!/bin/bash
Alain Reguera Delgado ddf7d2
######################################################################
Alain Reguera Delgado ddf7d2
#
Alain Reguera Delgado eb3010
#   tcar_printHelp.sh -- This function standardizes the way
Alain Reguera Delgado ddf7d2
#   centos-art.sh script prints help about itself.
Alain Reguera Delgado ddf7d2
#
Alain Reguera Delgado ddf7d2
#   Written by: 
Alain Reguera Delgado ddf7d2
#   * Alain Reguera Delgado <al@centos.org.cu>, 2009-2013
Alain Reguera Delgado ddf7d2
#     Key fingerprint = D67D 0F82 4CBD 90BC 6421  DF28 7CCE 757C 17CA 3951
Alain Reguera Delgado ddf7d2
#
Alain Reguera Delgado ddf7d2
# Copyright (C) 2009-2013 The CentOS Project
Alain Reguera Delgado ddf7d2
#
Alain Reguera Delgado ddf7d2
# This program is free software; you can redistribute it and/or modify
Alain Reguera Delgado ddf7d2
# it under the terms of the GNU General Public License as published by
Alain Reguera Delgado ddf7d2
# the Free Software Foundation; either version 2 of the License, or (at
Alain Reguera Delgado ddf7d2
# your option) any later version.
Alain Reguera Delgado ddf7d2
#
Alain Reguera Delgado ddf7d2
# This program is distributed in the hope that it will be useful, but
Alain Reguera Delgado ddf7d2
# WITHOUT ANY WARRANTY; without even the implied warranty of
Alain Reguera Delgado ddf7d2
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Alain Reguera Delgado ddf7d2
# General Public License for more details.
Alain Reguera Delgado ddf7d2
#
Alain Reguera Delgado ddf7d2
# You should have received a copy of the GNU General Public License
Alain Reguera Delgado ddf7d2
# along with this program; if not, write to the Free Software
Alain Reguera Delgado ddf7d2
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Alain Reguera Delgado ddf7d2
#
Alain Reguera Delgado ddf7d2
######################################################################
Alain Reguera Delgado ddf7d2
Alain Reguera Delgado eb3010
function tcar_printHelp {
Alain Reguera Delgado ddf7d2
Alain Reguera Delgado 65f472
    local MANPAGE="centos-art.sh-${MODULE_NAME}"
Alain Reguera Delgado 65f472
Alain Reguera Delgado 65f472
    if [[ ! -z ${1} ]];then
Alain Reguera Delgado 65f472
        MANPAGE=${1}
Alain Reguera Delgado 65f472
    fi
Alain Reguera Delgado 65f472
Alain Reguera Delgado 65f472
    /usr/bin/man -M ${TCAR_SCRIPT_BASEDIR}/Manuals/:${MODULE_DIR_MANUALS}/ \
Alain Reguera Delgado 65f472
        "${MANPAGE}"
Alain Reguera Delgado ddf7d2
    exit 0
Alain Reguera Delgado ddf7d2
Alain Reguera Delgado ddf7d2
}