From 58e3c803ab5378f6996a4e04dd1fcb903d22deb9 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Apr 02 2011 16:09:15 +0000 Subject: Update render_getDirTemplate.sh. --- diff --git a/Scripts/Functions/Render/render_getDirTemplate.sh b/Scripts/Functions/Render/render_getDirTemplate.sh index c9331ab..c407cf9 100644 --- a/Scripts/Functions/Render/render_getDirTemplate.sh +++ b/Scripts/Functions/Render/render_getDirTemplate.sh @@ -74,8 +74,13 @@ function render_getDirTemplate { TEMPLATE=$(echo "$TEMPLATE" | sed "s!/branches/!/trunk/!") # Define absolute path to theme-specific design models. - TEMPLATE=$(echo "$TEMPLATE" \ - | sed -r "s!$(cli_getPathComponent $TEMPLATE '--theme-pattern')!Identity/Themes/Models/${FLAG_THEME_MODEL}/!") + if [[ -d ${TEMPLATE}/Tpl ]];then + TEMPLATE=${TEMPLATE}/Tpl + else + TEMPLATE=$(echo "$TEMPLATE" \ + | sed -r "s!$(cli_getPathComponent $TEMPLATE '--theme-pattern')!Identity/Themes/Models/${FLAG_THEME_MODEL}/!") + fi + # Define absolute path to general-purpose design models. TEMPLATE=$(echo "$TEMPLATE" | sed "s!/Images!/Models!")