From 5eb9ec1c885635ee91843bd3eee92f103bb5ae4a Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jun 10 2011 16:49:51 +0000 Subject: Update svg_doPostActions.sh. --- diff --git a/Scripts/Functions/Render/Backends/Svg/svg_doPostActions.sh b/Scripts/Functions/Render/Backends/Svg/svg_doPostActions.sh index d099fab..b12d71e 100644 --- a/Scripts/Functions/Render/Backends/Svg/svg_doPostActions.sh +++ b/Scripts/Functions/Render/Backends/Svg/svg_doPostActions.sh @@ -1,7 +1,7 @@ #!/bin/bash # -# render_svg_doPostActions.sh -- This function performs -# post-rendition actions for SVG files. +# svg_doPostActions.sh -- This function performs post-rendition +# actions for SVG files. # # Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG # @@ -23,7 +23,7 @@ # $Id$ # ---------------------------------------------------------------------- -function render_svg_doPostActions { +function svg_doPostActions { local ACTION='' @@ -41,35 +41,35 @@ function render_svg_doPostActions { # Otherwise it wouldn't be possible to propagate changes impossed # by these actions to new files produced as result of # directory-specific rendition. - POSTACTIONS[((++${#POSTACTIONS[*]}))]="doPostActions:png:mogrify -comment '$COMMENT'" - [[ $FLAG_POSTRENDITION != '' ]] && POSTACTIONS[((++${#POSTACTIONS[*]}))]="doPostActions:png:${FLAG_POSTRENDITION}" + POSTACTIONS[((++${#POSTACTIONS[*]}))]="doPostCommand:png:mogrify -comment '$COMMENT'" + [[ $FLAG_POSTRENDITION != '' ]] && POSTACTIONS[((++${#POSTACTIONS[*]}))]="doPostCommand:png:${FLAG_POSTRENDITION}" # Define SVG directory-specific rendition. Directory-specfic # rendition provides a predictable way of producing content inside # the repository. if [[ $FLAG_DONT_DIRSPECIFIC == 'false' ]];then if [[ $TEMPLATE =~ "Backgrounds/.+\.svg$" ]];then - POSTACTIONS[((++${#POSTACTIONS[*]}))]='svg_convertPngTo:jpg' - POSTACTIONS[((++${#POSTACTIONS[*]}))]='svg_groupBy:png jpg' + POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngTo:jpg' + POSTACTIONS[((++${#POSTACTIONS[*]}))]='groupBy:png jpg' elif [[ $TEMPLATE =~ "Concept/.+\.svg$" ]];then - POSTACTIONS[((++${#POSTACTIONS[*]}))]='svg_convertPngTo:jpg pdf' - POSTACTIONS[((++${#POSTACTIONS[*]}))]='svg_convertPngToThumbnail:250' + POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngTo:jpg pdf' + POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToThumbnail:250' elif [[ $TEMPLATE =~ "Distro/$(cli_getPathComponent --release-pattern)/Syslinux/.+\.svg$" ]];then - POSTACTIONS[((++${#POSTACTIONS[*]}))]='svg_convertPngToSyslinux:' - POSTACTIONS[((++${#POSTACTIONS[*]}))]='svg_convertPngToSyslinux:-floyd' + POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToSyslinux:' + POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToSyslinux:-floyd' elif [[ $TEMPLATE =~ "Distro/$(cli_getPathComponent --release-pattern)/Grub/.+\.svg$" ]];then - POSTACTIONS[((++${#POSTACTIONS[*]}))]='svg_convertPngToGrub:' - POSTACTIONS[((++${#POSTACTIONS[*]}))]='svg_convertPngToGrub:-floyd' + POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToGrub:' + POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToGrub:-floyd' elif [[ $TEMPLATE =~ "Posters/.+\.svg$" ]];then - POSTACTIONS[((++${#POSTACTIONS[*]}))]='svg_convertPngTo:jpg pdf' + POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngTo:jpg pdf' elif [[ $TEMPLATE =~ "trunk/Identity/Models/Brands/.+\.svg$" ]];then - POSTACTIONS[((++${#POSTACTIONS[*]}))]='svg_convertPngToBrands' + POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToBrands' fi fi # Execute SVG post-rendition actions. for ACTION in "${POSTACTIONS[@]}"; do - ${FUNCNAM}_$(echo "$ACTION" | cut -d: -f1) + ${RENDER_BACKEND}_$(echo "$ACTION" | cut -d: -f1) done }