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
#
7cd8e9
# Copyright (C) 2009, 2010 Alain Reguera Delgado
c0ee12
# 
7cd8e9
# This program is free software; you can redistribute it and/or
7cd8e9
# modify it under the terms of the GNU General Public License as
7cd8e9
# published by the Free Software Foundation; either version 2 of the
7cd8e9
# License, or (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.
a1abae
    case $ACTIONNAM 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
}