| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function svg_doLastActions { |
| |
| |
| |
| if [[ $THIS_FILE_DIR == $NEXT_FILE_DIR ]];then |
| return |
| fi |
| |
| local ACTION='' |
| |
| |
| |
| local -a LASTACTIONS |
| |
| |
| |
| |
| |
| |
| if [[ $FLAG_DONT_DIRSPECIFIC == 'false' ]];then |
| if [[ $TEMPLATE =~ "Distro/$(cli_getPathComponent --release-pattern)/Gdm/.+\.svg$" ]];then |
| LASTACTIONS[((++${#LASTACTIONS[*]}))]='convertPngToDm:Gdm:800x600 1024x768 1280x1024 1360x768 2048x1536 2560x1240' |
| elif [[ $TEMPLATE =~ "Distro/$(cli_getPathComponent --release-pattern)/Kdm/.+\.svg$" ]];then |
| LASTACTIONS[((++${#LASTACTIONS[*]}))]='convertPngToDm:Kdm:800x600 1024x768 1280x1024 1360x768 2048x1536 2560x1240' |
| elif [[ $TEMPLATE =~ "Distro/$(cli_getPathComponent --release-pattern)/Ksplash/.+\.svg$" ]];then |
| LASTACTIONS[((++${#LASTACTIONS[*]}))]='convertPngToKsplash:' |
| fi |
| fi |
| |
| |
| |
| |
| |
| |
| |
| |
| [[ $FLAG_LASTRENDITION != '' ]] && LASTACTIONS[((++${#LASTACTIONS[*]}))]="doLastActions:(png|jpg):${FLAG_LASTRENDITION}" |
| |
| |
| |
| |
| |
| for ACTION in "${LASTACTIONS[@]}"; do |
| svg_$(echo "$ACTION" | cut -d: -f1) |
| done |
| |
| } |