|
|
c979f9 |
#!/bin/bash
|
|
|
c979f9 |
#
|
|
|
ab1d67 |
# render_doLastActions.sh -- This function performs
|
|
|
8af4d8 |
# last-rendition actions for all files.
|
|
|
c979f9 |
#
|
|
|
2d3646 |
# Copyright (C) 2009, 2010, 2011 The CentOS Project
|
|
|
fa95b1 |
#
|
|
|
fa95b1 |
# This program is free software; you can redistribute it and/or modify
|
|
|
fa95b1 |
# it under the terms of the GNU General Public License as published by
|
|
|
dcd347 |
# the Free Software Foundation; either version 2 of the License, or (at
|
|
|
dcd347 |
# your option) any later version.
|
|
|
fa95b1 |
#
|
|
|
74a058 |
# This program is distributed in the hope that it will be useful, but
|
|
|
74a058 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
c979f9 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
c979f9 |
# General Public License for more details.
|
|
|
c979f9 |
#
|
|
|
c979f9 |
# You should have received a copy of the GNU General Public License
|
|
|
c979f9 |
# along with this program; if not, write to the Free Software
|
|
|
dcd347 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
7ac5a5 |
#
|
|
|
c979f9 |
# ----------------------------------------------------------------------
|
|
|
c979f9 |
# $Id$
|
|
|
c979f9 |
# ----------------------------------------------------------------------
|
|
|
c979f9 |
|
|
|
ab1d67 |
function render_doLastActions {
|
|
|
c979f9 |
|
|
|
c979f9 |
local ACTION=''
|
|
|
c979f9 |
|
|
|
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
|
|
|
c979f9 |
|
|
|
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
|
|
|
c979f9 |
|
|
|
8af4d8 |
case "${ACTION}" in
|
|
|
c979f9 |
|
|
|
4b5b21 |
groupSimilarFiles:* )
|
|
|
ab1d67 |
render_groupSimilarFiles
|
|
|
8af4d8 |
;;
|
|
|
8af4d8 |
esac
|
|
|
c979f9 |
|
|
|
8af4d8 |
done
|
|
|
c979f9 |
|
|
|
8af4d8 |
fi
|
|
|
c979f9 |
|
|
|
c979f9 |
}
|