Blame Scripts/Bash/Functions/About/about_getActions.sh

edc7d9
#!/bin/bash
edc7d9
#
edc7d9
# license_getActions.sh -- This function initializes license
edc7d9
# functionalities, using the action value of centos-art.sh script as
edc7d9
# reference.
edc7d9
#
edc7d9
# Copyright (C) 2009, 2010 Alain Reguera Delgado
edc7d9
# 
edc7d9
# This program is free software; you can redistribute it and/or
edc7d9
# modify it under the terms of the GNU General Public License as
edc7d9
# published by the Free Software Foundation; either version 2 of the
edc7d9
# License, or (at your option) any later version.
edc7d9
# 
edc7d9
# This program is distributed in the hope that it will be useful, but
edc7d9
# WITHOUT ANY WARRANTY; without even the implied warranty of
edc7d9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
edc7d9
# General Public License for more details.
edc7d9
#
edc7d9
# You should have received a copy of the GNU General Public License
edc7d9
# along with this program; if not, write to the Free Software
edc7d9
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
edc7d9
# USA.
edc7d9
# 
edc7d9
# ----------------------------------------------------------------------
edc7d9
# $Id: license_getActions.sh 538 2010-11-26 11:12:33Z al $
edc7d9
# ----------------------------------------------------------------------
edc7d9
    
edc7d9
function license_getActions {
edc7d9
edc7d9
    # Evaluate action name and define which actions does centos-art.sh
edc7d9
    # script supports.
edc7d9
    case $ACTIONNAM in
edc7d9
554c2e
        '--license' )
554c2e
            about_doLicense
edc7d9
            ;;
edc7d9
edc7d9
        * )
edc7d9
            cli_printMessage "`gettext "The option provided is not valid."`" 'AsErrorLine'
edc7d9
            ;;
edc7d9
edc7d9
    esac
edc7d9
    
edc7d9
}