|
|
d27df4 |
#!/bin/bash
|
|
|
d27df4 |
#
|
|
|
6523cc |
# render_getIdentityBase.sh -- This function initiates rendition features
|
|
|
d27df4 |
# taking BASEACTIONS as reference.
|
|
|
d27df4 |
#
|
|
|
d27df4 |
# Copyright (C) 2009-2011 Alain Reguera Delgado
|
|
|
d27df4 |
#
|
|
|
d27df4 |
# This program is free software; you can redistribute it and/or
|
|
|
d27df4 |
# modify it under the terms of the GNU General Public License as
|
|
|
d27df4 |
# published by the Free Software Foundation; either version 2 of the
|
|
|
d27df4 |
# License, or (at your option) any later version.
|
|
|
d27df4 |
#
|
|
|
d27df4 |
# This program is distributed in the hope that it will be useful, but
|
|
|
d27df4 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
d27df4 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
d27df4 |
# General Public License for more details.
|
|
|
d27df4 |
#
|
|
|
d27df4 |
# You should have received a copy of the GNU General Public License
|
|
|
d27df4 |
# along with this program; if not, write to the Free Software
|
|
|
d27df4 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
d27df4 |
# USA.
|
|
|
d27df4 |
#
|
|
|
d27df4 |
# ----------------------------------------------------------------------
|
|
|
d27df4 |
# $Id$
|
|
|
d27df4 |
# ----------------------------------------------------------------------
|
|
|
d27df4 |
|
|
|
6523cc |
function render_getIdentityBase {
|
|
|
d27df4 |
|
|
|
d27df4 |
# Define variables as local to avoid conflicts outside.
|
|
|
d27df4 |
local TRANSLATIONPATH=''
|
|
|
d27df4 |
local SVG=''
|
|
|
d27df4 |
local IMG=''
|
|
|
d27df4 |
local PARENTDIR=''
|
|
|
d27df4 |
local LOCATION=''
|
|
|
d27df4 |
local EXTENSION=''
|
|
|
d27df4 |
local FILTER=''
|
|
|
d27df4 |
local FILES=''
|
|
|
d27df4 |
|
|
|
d27df4 |
# Redefine absolute path to artwork's related translation entry.
|
|
|
6523cc |
render_getIdentityDirTranslation
|
|
|
d27df4 |
|
|
|
d27df4 |
# Redefine absolute path to artwork's related design template
|
|
|
d27df4 |
# directory. By default design templates are stored in the Tpl/
|
|
|
d27df4 |
# directory which is stored in the workplace's root.
|
|
|
6523cc |
render_getIdentityDirTemplate
|
|
|
d27df4 |
|
|
|
d27df4 |
# Redefine absolute path to artwork's related final output
|
|
|
d27df4 |
# directory.
|
|
|
6523cc |
render_getIdentityDirOutput
|
|
|
d27df4 |
|
|
|
d27df4 |
# Redefine parent directory for current workplace.
|
|
|
d27df4 |
PARENTDIR=$(basename $ACTIONVAL)
|
|
|
d27df4 |
|
|
|
d27df4 |
# Redefine directory path used as reference to build the list of
|
|
|
d27df4 |
# files that will be rendered.
|
|
|
d27df4 |
render_getFilesList
|
|
|
d27df4 |
|
|
|
d27df4 |
# Define which type of features does centos-art.sh script is able
|
|
|
d27df4 |
# to perform.
|
|
|
d27df4 |
for ACTION in "${BASEACTIONS[@]}"; do
|
|
|
d27df4 |
|
|
|
d27df4 |
case $ACTION in
|
|
|
d27df4 |
|
|
|
d27df4 |
renderText )
|
|
|
d27df4 |
# Provides text rendition feature.
|
|
|
d27df4 |
render_doIdentityTexts
|
|
|
d27df4 |
;;
|
|
|
d27df4 |
|
|
|
d27df4 |
renderImage )
|
|
|
d27df4 |
# Provides image rendition feature.
|
|
|
d27df4 |
render_doIdentityImages
|
|
|
d27df4 |
;;
|
|
|
d27df4 |
|
|
|
d27df4 |
esac
|
|
|
d27df4 |
|
|
|
d27df4 |
done
|
|
|
d27df4 |
|
|
|
d27df4 |
}
|