Blame Scripts/Bash/Cli/Functions/Identity/identity_renderSvgLastActions.sh

8af4d8
#!/bin/bash
8af4d8
#
8af4d8
# identity_renderSvgLastActions.sh -- This function performs
8af4d8
# last-rendition actions for SVG files.
8af4d8
#
8af4d8
# Copyright (C) 2009-2011 Alain Reguera Delgado
8af4d8
# 
8af4d8
# This program is free software; you can redistribute it and/or
8af4d8
# modify it under the terms of the GNU General Public License as
8af4d8
# published by the Free Software Foundation; either version 2 of the
8af4d8
# License, or (at your option) any later version.
8af4d8
# 
8af4d8
# This program is distributed in the hope that it will be useful, but
8af4d8
# WITHOUT ANY WARRANTY; without even the implied warranty of
8af4d8
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8af4d8
# General Public License for more details.
8af4d8
#
8af4d8
# You should have received a copy of the GNU General Public License
8af4d8
# along with this program; if not, write to the Free Software
8af4d8
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
8af4d8
# USA.
8af4d8
# 
8af4d8
# ----------------------------------------------------------------------
8af4d8
# $Id$
8af4d8
# ----------------------------------------------------------------------
8af4d8
8af4d8
function identity_renderSvgLastActions {
8af4d8
8af4d8
    local ACTION=''
8af4d8
8af4d8
    # Verify position of file being produced in the list of files been
8af4d8
    # currently processed.
8af4d8
    if [[ $THIS_FILE_DIR != $NEXT_FILE_DIR ]];then
8af4d8
8af4d8
        # At this point centos-art.sh should be producing the last
8af4d8
        # file from the same unique directory structure, so, before
8af4d8
        # producing images for the next directory structure lets
8af4d8
        # execute last-rendition actions for the current directory
8af4d8
        # structure. 
8af4d8
        for ACTION in "${LASTACTIONS[@]}"; do
8af4d8
8af4d8
            case "${ACTION}" in
8af4d8
8af4d8
                renderKSplash )
8af4d8
                    identity_renderKsplash
8af4d8
                    ;;
8af4d8
8af4d8
                renderDm:* )
8af4d8
                    identity_renderDm
8af4d8
                    ;;
8af4d8
8af4d8
            esac
8af4d8
8af4d8
        done
8af4d8
8af4d8
    fi
8af4d8
8af4d8
}
8af4d8