Blame Scripts/Bash/Functions/Shell/shell_getActions.sh

c0ee12
#!/bin/bash
c0ee12
#
4fac24
# shell_getActions.sh -- This function initializes very simple string
4fac24
# manipulations to Bash scripts (*.sh), using the option value of
c0ee12
# centos-art.sh script as reference.
c0ee12
#
c0ee12
# Copyright (C) 2009-2010 Alain Reguera Delgado
c0ee12
# 
c0ee12
# This program is free software; you can redistribute it and/or modify
c0ee12
# it under the terms of the GNU General Public License as published by
c0ee12
# the Free Software Foundation; either version 2 of the License, or
c0ee12
# (at your option) any later version.
c0ee12
# 
c0ee12
# This program is distributed in the hope that it will be useful, but
c0ee12
# WITHOUT ANY WARRANTY; without even the implied warranty of
c0ee12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
c0ee12
# General Public License for more details.
c0ee12
#
c0ee12
# You should have received a copy of the GNU General Public License
c0ee12
# along with this program; if not, write to the Free Software
c0ee12
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
c0ee12
# USA.
c0ee12
# 
c0ee12
# ----------------------------------------------------------------------
c0ee12
# $Id$
c0ee12
# ----------------------------------------------------------------------
c0ee12
    
4fac24
function shell_getActions {
c0ee12
c0ee12
    # Evaluate option name and define which actions does centos-art.sh
c0ee12
    # script supports.
c0ee12
    case $OPTIONNAM in
c0ee12
754a35
        '--update-copyright' )
754a35
            # Update copyright note inside top comments.
754a35
            shell_updateCopyright
c0ee12
            ;;
c0ee12
c0ee12
        * )
c0ee12
            cli_printMessage "`eval_gettext "The option provided is not valid."`"
754a35
            cli_printMessage "$(caller)" 'AsToKnowMoreLine'
c0ee12
            ;;
c0ee12
c0ee12
    esac
4fac24
c0ee12
}