|
|
4c79b5 |
#!/bin/bash
|
|
|
4c79b5 |
#
|
|
|
da33cf |
# render_svg_convertPngToKsplash.sh -- This function collects KDE
|
|
|
da33cf |
|
|
|
da33cf |
# groups them all together. Use this function as last-rendition action
|
|
|
da33cf |
# for KSplash base-rendition action.
|
|
|
4c79b5 |
#
|
|
|
2d3646 |
# Copyright (C) 2009, 2010, 2011 The CentOS Project
|
|
|
fa95b1 |
#
|
|
|
fa95b1 |
# This program is free software; you can redistribute it and/or modify
|
|
|
fa95b1 |
|
|
|
dcd347 |
|
|
|
dcd347 |
|
|
|
fa95b1 |
#
|
|
|
74a058 |
|
|
|
74a058 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
# General Public License for more details.
|
|
|
4c79b5 |
#
|
|
|
4c79b5 |
|
|
|
4c79b5 |
# along with this program; if not, write to the Free Software
|
|
|
dcd347 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
7ac5a5 |
#
|
|
|
4c79b5 |
# ----------------------------------------------------------------------
|
|
|
418249 |
# $Id$
|
|
|
4c79b5 |
# ----------------------------------------------------------------------
|
|
|
4c79b5 |
|
|
|
da33cf |
function render_svg_convertPngToKsplash {
|
|
|
4c79b5 |
|
|
|
39208d |
local -a SRC
|
|
|
39208d |
local -a DST
|
|
|
39208d |
local FONT=''
|
|
|
39208d |
local COUNT=0
|
|
|
4c79b5 |
|
|
|
39208d |
|
|
|
25c2b4 |
FONT=$(cli_getRepoTLDir)/Identity/Fonts/DejaVuLGCSans-Bold.ttf
|
|
|
4c79b5 |
|
|
|
39208d |
|
|
|
cb5967 |
cli_checkFiles "$FONT"
|
|
|
4c79b5 |
|
|
|
39208d |
|
|
|
3ce7f9 |
SRC[0]="${OUTPUT}/splash_top.png"
|
|
|
3ce7f9 |
SRC[1]="${OUTPUT}/splash_active_bar.png"
|
|
|
3ce7f9 |
SRC[2]="${OUTPUT}/splash_inactive_bar.png"
|
|
|
3ce7f9 |
SRC[3]="${OUTPUT}/splash_bottom.png"
|
|
|
b6844a |
SRC[4]="$(dirname $TEMPLATE)/Theme.rc"
|
|
|
4c79b5 |
|
|
|
39208d |
|
|
|
cb5967 |
cli_checkFiles "${SRC[@]}"
|
|
|
2c2082 |
|
|
|
39208d |
|
|
|
3ce7f9 |
DST[0]="${OUTPUT}/splash_top.png"
|
|
|
3ce7f9 |
DST[1]="${OUTPUT}/splash_active_bar.png"
|
|
|
3ce7f9 |
DST[2]="${OUTPUT}/splash_inactive_bar.png"
|
|
|
3ce7f9 |
DST[3]="${OUTPUT}/splash_bottom.png"
|
|
|
3ce7f9 |
DST[4]="${OUTPUT}/Theme.rc"
|
|
|
3ce7f9 |
|
|
|
3ce7f9 |
|
|
|
0ff158 |
cli_printMessage "${OUTPUT}/Preview.png" --as-creating-line
|
|
|
2c2082 |
|
|
|
39208d |
|
|
|
3ce7f9 |
convert -append ${SRC[0]} ${SRC[1]} ${SRC[3]} ${OUTPUT}/Preview.png
|
|
|
2c2082 |
|
|
|
39208d |
|
|
|
39208d |
|
|
|
39208d |
|
|
|
39208d |
|
|
|
39208d |
mogrify -draw 'text 6,295 "KDE is up and running."' \
|
|
|
39208d |
-fill \
|
|
|
39208d |
-font $FONT \
|
|
|
3ce7f9 |
${OUTPUT}/Preview.png
|
|
|
2c2082 |
|
|
|
39208d |
|
|
|
39208d |
cp ${SRC[4]} ${DST[4]}
|
|
|
4c79b5 |
|
|
|
39208d |
|
|
|
79e54d |
cli_replaceTMarkers "${DST[4]}"
|
|
|
ec641d |
|
|
|
4c79b5 |
}
|