From 42e42ef63c3de832f3272337f0b9c881e28b9f54 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Mar 23 2011 22:02:40 +0000 Subject: Update render_doSvgPostActions.sh. --- diff --git a/Scripts/Functions/Render/render_doSvgPostActions.sh b/Scripts/Functions/Render/render_doSvgPostActions.sh index aecc36c..d2d5f1d 100644 --- a/Scripts/Functions/Render/render_doSvgPostActions.sh +++ b/Scripts/Functions/Render/render_doSvgPostActions.sh @@ -33,6 +33,13 @@ function render_doSvgPostActions { # post-rendition actions. local -a POSTACTIONS + # Write copyright information to all PNG images produced as result + # of base-rendition action. The copyright information is written + # in the image datastream using the PNG commentary tag. + if [[ $TEMPLATE =~ 'trunk/Identity/.+\.svg$' ]];then + POSTACTIONS[((++${#POSTACTIONS[*]}))]="renderComment: $(cli_getCopyrightInfo)" + fi + # Execute SVG directory-specific post-rendition actions to the # list of post actions and last actions. This is required in order # to provide a predictable way of producing content inside the @@ -45,7 +52,7 @@ function render_doSvgPostActions { elif [[ $TEMPLATE =~ "Distro/$(cli_getPathComponent '--release-pattern')/Syslinux/.+\.svg$" ]];then POSTACTIONS[((++${#POSTACTIONS[*]}))]='renderSyslinux' POSTACTIONS[((++${#POSTACTIONS[*]}))]='renderSyslinux:-floyd' - elif [[ $TEMPLATE =~ "Grub" ]];then + elif [[ $TEMPLATE =~ "Distro/$(cli_getPathComponent '--release-pattern')/Grub/.+\.svg$" ]];then POSTACTIONS[((++${#POSTACTIONS[*]}))]='renderGrub' POSTACTIONS[((++${#POSTACTIONS[*]}))]='renderGrub:-floyd' elif [[ $TEMPLATE =~ "Distro/$(cli_getPathComponent '--release-pattern')/Ksplash/.+\.svg$" ]];then @@ -94,6 +101,10 @@ function render_doSvgPostActions { render_doBrands ;; + renderComment:* ) + render_mogrifyCommentToPng + ;; + groupSimilarFiles:* ) render_groupSimilarFiles ;;