| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function svg_doPostActions { |
| |
| local ACTION='' |
| |
| |
| |
| local -a POSTACTIONS |
| |
| |
| local COMMENT="`gettext "Created in CentOS Artwork Repository"` ($(cli_printUrl '--projects-artwork'))" |
| |
| |
| |
| |
| |
| |
| |
| |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]="doPostCommand:png:mogrify -comment '$COMMENT'" |
| [[ $FLAG_POSTRENDITION != '' ]] && POSTACTIONS[((++${#POSTACTIONS[*]}))]="doPostCommand:png:${FLAG_POSTRENDITION}" |
| |
| |
| |
| |
| if [[ $FLAG_DONT_DIRSPECIFIC == 'false' ]];then |
| |
| if [[ $TEMPLATE =~ "trunk/Identity/(Models|Images)/Themes/.+\.${RENDER_EXTENSION}$" ]];then |
| |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]="convertPngToBranded" |
| |
| if [[ $TEMPLATE =~ "Backgrounds/.+\.${RENDER_EXTENSION}$" ]];then |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngTo:jpg' |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='groupBy:png jpg' |
| |
| elif [[ $TEMPLATE =~ "Concept/.+\.${RENDER_EXTENSION}$" ]];then |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngTo:jpg pdf' |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToThumbnail:250' |
| |
| elif [[ $TEMPLATE =~ "Distro/$(cli_getPathComponent --release-pattern)/Syslinux/.+\.${RENDER_EXTENSION}$" ]];then |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToSyslinux:' |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToSyslinux:-floyd' |
| |
| elif [[ $TEMPLATE =~ "Distro/$(cli_getPathComponent --release-pattern)/Grub/.+\.${RENDER_EXTENSION}$" ]];then |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToGrub:' |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToGrub:-floyd' |
| |
| elif [[ $TEMPLATE =~ "Posters/.+\.${RENDER_EXTENSION}$" ]];then |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngTo:jpg pdf' |
| fi |
| |
| elif [[ $TEMPLATE =~ "trunk/Identity/Models/Brands/.+\.${RENDER_EXTENSION}$" ]];then |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToBrands' |
| |
| elif [[ $TEMPLATE =~ "trunk/Identity/Models/Icons/.+\.${RENDER_EXTENSION}$" ]];then |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToIcons' |
| |
| elif [[ $TEMPLATE =~ "trunk/Identity/Models/Manuals.+\.${RENDER_EXTENSION}$" ]];then |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngTo:jpg pdf' |
| |
| fi |
| |
| fi |
| |
| |
| for ACTION in "${POSTACTIONS[@]}"; do |
| svg_$(echo "$ACTION" | cut -d: -f1) |
| done |
| |
| } |