| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function render_doSvgPostActions { |
| |
| local ACTION='' |
| |
| |
| |
| |
| local -a POSTACTIONS |
| |
| |
| |
| [[ $FLAG_COMMENT != '' ]] && POSTACTIONS[((++${#POSTACTIONS[*]}))]="mogrifyPngToComment" |
| [[ $FLAG_SHARPEN != '' ]] && POSTACTIONS[((++${#POSTACTIONS[*]}))]="mogrifyPngToSharpen" |
| |
| |
| |
| |
| if [[ $TEMPLATE =~ "Backgrounds/.+\.svg$" ]];then |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngTo:jpg' |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='groupSimilarFiles:png jpg' |
| elif [[ $TEMPLATE =~ "Concept/.+\.svg$" ]];then |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngTo:jpg pdf' |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='convertPngToThumbnail:250' |
| elif [[ $TEMPLATE =~ "Distro/$(cli_getPathComponent '--release-pattern')/Syslinux/.+\.svg$" ]];then |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='doSyslinux' |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='doSyslinux:-floyd' |
| elif [[ $TEMPLATE =~ "Distro/$(cli_getPathComponent '--release-pattern')/Grub/.+\.svg$" ]];then |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='doGrub' |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='doGrub:-floyd' |
| elif [[ $TEMPLATE =~ "Distro/$(cli_getPathComponent '--release-pattern')/Ksplash/.+\.svg$" ]];then |
| POSTACTIONS[((++${#POSTACTIONS[*]}))]='doKsplash' |
| fi |
| |
| |
| |
| [[ $FLAG_CONVERT != '' ]] && POSTACTIONS[((++${#POSTACTIONS[*]}))]="convertPngTo:$FLAG_CONVERT" |
| |
| |
| for ACTION in "${POSTACTIONS[@]}"; do |
| ${FUNCNAM}_$(echo "$ACTION" | cut -d: -f1) |
| done |
| |
| } |