From 7f1fb76c6241ced4560b2fcb4aa3db863eaf135e Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Nov 25 2010 14:26:51 +0000 Subject: Update render_getIdentitylist.sh: - Rename render_getIdentityFileslist to render_getFilesList for consistency. This functionality is very similar to cli_getFilesList, they both exist to provide the list of files to process. But caution!, render_getFilesList perfomrs this goal in a way quiet different to cli_getFilesList. The cli_getFilesList function use ACTIONVAL variable as source location to perform the find command. On the other hand, render_getFilesList function uses matching list and translation path information as reference to build the source location the find command uses to build the final list of files. Depending on matching list and translation path information, the render functionality can use scalable vector graphics directory structure or translation files directory structure as source location to build the final list of file names (without extension) to process. --- diff --git a/Scripts/Bash/Functions/Render/render_getIdentityFileslist.sh b/Scripts/Bash/Functions/Render/render_getIdentityFileslist.sh index 7d4a02e..ef1b0bc 100644 --- a/Scripts/Bash/Functions/Render/render_getIdentityFileslist.sh +++ b/Scripts/Bash/Functions/Render/render_getIdentityFileslist.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# render_getIdentityFileslist.sh -- This function re-defines list of +# render_getFilesList.sh -- This function re-defines list of # files that will be rendered using matching list and translation path # information as reference. # @@ -25,8 +25,13 @@ # $Id$ # ---------------------------------------------------------------------- -function render_getIdentityFileslist { +function render_getFilesList { + # Define source location to look files for. In order to define + # source location we evaluate both matching list and translation + # path information, and based on them, we set which is the source + # location and extension used as reference to build list of file + # names (without extension) to process for. if [[ "${MATCHINGLIST}" != "" ]] \ && [[ "${TRANSLATIONPATH}" == "" ]];then @@ -56,7 +61,7 @@ function render_getIdentityFileslist { EXTENSION='sed' fi - + # Re-define filter string to apply. FILTER="^$LOCATION/${REGEX}.*\.${EXTENSION}$"