From 73f2d2b6aab1a8340c9172e594b2267c6e072955 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Oct 22 2013 04:53:18 +0000 Subject: Update render module of centos-art.sh script. - Previously, image and palette functions were using the array variable SOURCE to retrieve information about source files. However, they both fail because the SOURCE array variable was renamed to SOURCES. This update changes the image and palette function to use the SOURCES variable instead of SOURCE. --- diff --git a/Automation/Modules/Render/Modules/Files/Modules/Images/images.sh b/Automation/Modules/Render/Modules/Files/Modules/Images/images.sh index f41839a..2ef06cd 100755 --- a/Automation/Modules/Render/Modules/Files/Modules/Images/images.sh +++ b/Automation/Modules/Render/Modules/Files/Modules/Images/images.sh @@ -31,7 +31,7 @@ function images { - tcar_checkFiles -i "image" ${SOURCE[*]} + tcar_checkFiles -i "image" ${SOURCES[*]} COMMAND=$(tcar_getConfigValue "${CONFIGURATION}" "${SECTION}" "command") if [[ -z ${COMMAND} ]];then diff --git a/Automation/Modules/Render/Modules/Files/Modules/Palette/palette.sh b/Automation/Modules/Render/Modules/Files/Modules/Palette/palette.sh index 67fbb2d..49a6c65 100755 --- a/Automation/Modules/Render/Modules/Files/Modules/Palette/palette.sh +++ b/Automation/Modules/Render/Modules/Files/Modules/Palette/palette.sh @@ -37,6 +37,7 @@ function palette { # taken to set the max number of colors the final image will be # produced for. local PALETTE_GPL=$(dirname ${CONFIGURATION})/$(tcar_getConfigValue ${CONFIGURATION} ${SECTION} 'palette-gpl') + tcar_checkFiles -ef ${PALETTE_GPL} local PALETTE_GPL_COLORS=$(palette_getColors "${PALETTE_GPL}") @@ -54,7 +55,7 @@ function palette { # base-rendition output. The PNM image is an intermediate format # used to manipulate images through Netpbm tools. pngtopnm -verbose \ - < ${SOURCE[0]} 2>${LOGS} > ${FILENAME}.pnm + < ${SOURCES[0]} 2>${LOGS} > ${FILENAME}.pnm # Create PPM palette using GPL palette. palette_convertGplToPpm