| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function render_doSvg { |
| |
| |
| |
| local EXPORTID='CENTOSARTWORK' |
| |
| |
| grep "id=\"$EXPORTID\"" $INSTANCE > /dev/null |
| if [[ $? -gt 0 ]];then |
| cli_printMessage "`eval_gettext "There is no export id (\\\$EXPORTID) inside \\\$TEMPLATE."`" "AsErrorLine" |
| cli_printMessage '-' 'AsSeparatorLine' |
| continue |
| fi |
| |
| |
| |
| |
| |
| |
| |
| render_checkSvgAbsref "$INSTANCE" |
| |
| |
| |
| |
| cli_printMessage "$(inkscape $INSTANCE \ |
| --export-id=$EXPORTID --export-png=${FILE}.png | sed -r \ |
| -e "s!Area !`gettext "Area"`: !" \ |
| -e "s!Background RRGGBBAA:!`gettext "Background"`: RRGGBBAA!" \ |
| -e "s!Bitmap saved as:!`gettext "Saved as"`:!")" 'AsRegularLine' |
| |
| } |