Blame Scripts/Bash/Functions/Svg/svg_getActions.sh

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