107351
Update render_doIdentity.sh.
@@ -29,51 +29,31 @@
|
|
29
29
|
|
30
30
|
function render_doIdentity {
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
#
|
32
|
+
local FILE=''
|
33
|
+
|
34
|
+
# Initialize artwork identification.
|
35
|
-
if [[ ! $ACTIONVAL =~ "^$(cli_getRepoTLDir $ACTIONVAL)/(Identity|Manuals)/.+$" ]];then
|
36
|
-
cli_printMessage "`eval_gettext "Can't render files under \\\`\\\$ACTIONVAL'."`" 'AsErrorLine'
|
37
|
-
cli_printMessage "$(caller)" "AsToKnowMoreLine"
|
38
|
-
fi
|
39
|
-
|
40
|
-
# Define variables as local to avoid conflicts outside.
|
41
35
|
local ARTCOMP=''
|
42
36
|
|
43
|
-
# Define default theme model
|
37
|
+
# Define default theme model.
|
44
38
|
local THEMEMODEL='Default'
|
45
39
|
|
46
|
-
#
|
47
|
-
|
48
|
-
|
49
|
-
#
|
50
|
-
|
51
|
-
|
52
|
-
#
|
53
|
-
|
40
|
+
# Build list of files to process.
|
41
|
+
local FILES=$(cli_getFilesList "$ARTCONF" ".*/?render\.conf\.sh")
|
42
|
+
|
43
|
+
# Set action preamble.
|
44
|
+
cli_printActionPreamble "${FILES}"
|
45
|
+
|
46
|
+
# Process list of files.
|
47
|
+
for FILE in $FILES;do
|
54
|
-
# artwork-specific pre-rendition configuration scripts.
|
55
|
-
local MATCHINGLIST=''
|
56
|
-
|
57
|
-
# Check current scripts path value. If scripts path points to a
|
58
|
-
# directory which currently doesn't exist there is nothing to do
|
59
|
-
# here, so leave a message quit script execution.
|
60
|
-
if [[ ! -d $ARTCONF ]];then
|
61
|
-
cli_printMessage "`gettext "The path provided can't be processed."`" 'AsErrorLine'
|
62
|
-
cli_printMessage "$(caller)" 'AsToKnowMoreLine'
|
63
|
-
fi
|
64
|
-
|
65
|
-
for FILE in $(find $ARTCONF -name 'render.conf.sh');do
|
66
48
|
|
67
49
|
# Output action message.
|
68
50
|
cli_printMessage $FILE 'AsConfigurationLine'
|
69
|
-
cli_printMessage '-' 'AsSeparatorLine'
|
70
51
|
|
71
52
|
# Define artwork-specific action arrays. We need to do this
|
72
53
|
# here because ACTIONS variable is unset after
|
73
54
|
# render_doIdentityImages execution. Otherwise, undesired
|
74
55
|
# concatenations may occur.
|
75
56
|
local -a ACTIONS
|
76
|
-
local -a BASEACTIONS
|
77
57
|
local -a POSTACTIONS
|
78
58
|
local -a LASTACTIONS
|
79
59
|
|
@@ -82,8 +62,7 @@ function render_doIdentity {
|
|
82
62
|
. $FILE
|
83
63
|
|
84
64
|
# Execute artwork-specific pre-rendition configuration
|
85
|
-
# (function) scripts to re-define artwork-specific ACTIONS
|
65
|
+
# (function) scripts to re-define artwork-specific ACTIONS.
|
86
|
-
# MATCHINGLIST variables.
|
87
66
|
render_loadConfig
|
88
67
|
|
89
68
|
# Check variables passed from artwork-specific pre-rendition
|
@@ -96,10 +75,11 @@ function render_doIdentity {
|
|
96
75
|
# the exact artwork path (that is, where images will be
|
97
76
|
# stored).
|
98
77
|
ACTIONVAL=$(dirname $(echo $FILE | sed -r \
|
99
|
-
-e 's!Scripts/Bash/Functions/Render/Config/(Identity
|
78
|
+
-e 's!Scripts/Bash/Functions/Render/Config/(Identity)/!\1/!' \
|
100
79
|
-e "s!Themes/!Themes/Motifs/$(cli_getPathComponent '--theme')/!"))
|
101
80
|
|
102
|
-
# Redefine artwork identification
|
81
|
+
# Redefine artwork identification using redefined action
|
82
|
+
# value.
|
103
83
|
ARTCOMP=$(echo $ACTIONVAL | cut -d/ -f6-)
|
104
84
|
|
105
85
|
# Remove motif name from artwork identification in order to
|
@@ -125,7 +105,6 @@ function render_doIdentity {
|
|
125
105
|
# want ACTIONS to do what we exactly tell it to do inside each
|
126
106
|
# artwork-specific pre-rendition configuration script.
|
127
107
|
unset ACTIONS
|
128
|
-
unset BASEACTIONS
|
129
108
|
unset POSTACTIONS
|
130
109
|
unset LASTACTIONS
|
131
110
|
|