| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function svg { |
| |
| |
| |
| local EXPORTID='CENTOSARTWORK' |
| |
| |
| svg_checkModelExportId "$INSTANCE" "$EXPORTID" |
| |
| |
| |
| |
| |
| |
| |
| svg_checkModelAbsref "$INSTANCE" |
| |
| |
| local INKSCAPE_OUTPUT="$(\ |
| inkscape $INSTANCE --export-id=$EXPORTID --export-png=${FILE}.png)" |
| |
| |
| |
| cli_printMessage "$(echo "$INKSCAPE_OUTPUT" | egrep '^Area' \ |
| | sed -r "s!^Area!`gettext "Area"`:!")" --as-inkscape-line |
| cli_printMessage "$(echo "$INKSCAPE_OUTPUT" | egrep '^Background' \ |
| | sed -r "s!^Background (RRGGBBAA):(.*)!`gettext "Background"`: \1 \2!")" --as-inkscape-line |
| cli_printMessage "$(echo "$INKSCAPE_OUTPUT" | egrep '^Bitmap saved as' \ |
| | sed -r "s!^Bitmap saved as:!`gettext "Saved as"`:!")" --as-inkscape-line |
| |
| # Perform format post-rendition. |
| svg_doPostActions |
| |
| # Perform format last-rendition. |
| svg_doLastActions |
| |
| } |
| |