From 3d8c7dd4638c3013d706f39ab6655d2ceb8d57a0 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jul 03 2011 18:48:55 +0000 Subject: Add `prepare_doImages.sh'. --- diff --git a/Scripts/Functions/Prepare/prepare_doImages.sh b/Scripts/Functions/Prepare/prepare_doImages.sh new file mode 100755 index 0000000..188ff41 --- /dev/null +++ b/Scripts/Functions/Prepare/prepare_doImages.sh @@ -0,0 +1,45 @@ +#!/bin/bash +# +# prepare_doImages.sh -- This option initializes image files inside +# the working copy. When you provide this option, the centos-art.sh +# scripts renders image files from all design models available in the +# working copy. This step is required in order to satisfy dependencies +# from different components inside the working copy. +# +# Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# +# ---------------------------------------------------------------------- +# $Id$ +# ---------------------------------------------------------------------- + +function prepare_doImages { + + # Define list of directories that need to be rendered. + local DIRS=$(cli_getFilesList \ + ${HOME}/artwork/trunk/Identity/Images --maxdepth="1" \ + --mindepth="1" --type="d" --pattern=".+/[[:alnum:]]+$") + + # Execute the render functionality of centos-art.sh script to + # produce directories inside the list one by one. Producing + # directories one by one is important because themes directory is + # produced differently compared to others directories. This way, + # when we create a list of directories and pass them that way to + # centos-art.sh script, it is possible for ir to know how to + # produce each directory passed. + ${CLI_BASEDIR}/${CLI_PROGRAM}.sh render $DIRS --dont-commit-changes + +}