|
|
edc7d9 |
#!/bin/bash
|
|
|
edc7d9 |
#
|
|
|
429ced |
# about_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 |
# ----------------------------------------------------------------------
|
|
|
429ced |
# $Id: about_getActions.sh 538 2010-11-26 11:12:33Z al $
|
|
|
edc7d9 |
# ----------------------------------------------------------------------
|
|
|
edc7d9 |
|
|
|
429ced |
function about_getActions {
|
|
|
edc7d9 |
|
|
|
12241f |
local FILE=''
|
|
|
d8fc9d |
|
|
|
edc7d9 |
# Evaluate action name and define which actions does centos-art.sh
|
|
|
edc7d9 |
# script supports.
|
|
|
edc7d9 |
case $ACTIONNAM in
|
|
|
edc7d9 |
|
|
|
554c2e |
'--license' )
|
|
|
12241f |
FILE='/home/centos/artwork/trunk/Scripts/Bash/Functions/About/Config/license.txt'
|
|
|
d8fc9d |
;;
|
|
|
d8fc9d |
'--history' )
|
|
|
12241f |
FILE='/home/centos/artwork/trunk/Scripts/Bash/Functions/About/Config/history.txt'
|
|
|
d8fc9d |
;;
|
|
|
d8fc9d |
'--authors' )
|
|
|
12241f |
FILE='/home/centos/artwork/trunk/Scripts/Bash/Functions/About/Config/authors.txt'
|
|
|
12241f |
;;
|
|
|
12241f |
'--copying' )
|
|
|
12241f |
FILE='/home/centos/artwork/trunk/Scripts/Bash/Functions/About/Config/copying.txt'
|
|
|
edc7d9 |
;;
|
|
|
edc7d9 |
* )
|
|
|
edc7d9 |
cli_printMessage "`gettext "The option provided is not valid."`" 'AsErrorLine'
|
|
|
d8fc9d |
cli_printMessage "$(caller)" 'AsToKnowMoreLine'
|
|
|
edc7d9 |
;;
|
|
|
edc7d9 |
esac
|
|
|
d8fc9d |
|
|
|
12241f |
# Print file for user to read.
|
|
|
12241f |
less $FILE
|
|
|
12241f |
|
|
|
edc7d9 |
}
|