|
|
4c79b5 |
#!/bin/bash
|
|
|
4c79b5 |
#
|
|
|
2c2082 |
# render_doIdentityImageKsplash.sh -- This function renders
|
|
|
2c2082 |
# KSplash Preview.png image. Use this function as last-rendering
|
|
|
2c2082 |
# function to KSplash base-rendering.
|
|
|
4c79b5 |
#
|
|
|
9f5f2e |
# Copyright (C) 2009-2011 Alain Reguera Delgado
|
|
|
4c79b5 |
#
|
|
|
7cd8e9 |
# This program is free software; you can redistribute it and/or
|
|
|
7cd8e9 |
|
|
|
7cd8e9 |
|
|
|
7cd8e9 |
|
|
|
4c79b5 |
#
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
# General Public License for more details.
|
|
|
4c79b5 |
#
|
|
|
4c79b5 |
|
|
|
4c79b5 |
# along with this program; if not, write to the Free Software
|
|
|
4c79b5 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
4c79b5 |
# USA.
|
|
|
4c79b5 |
#
|
|
|
4c79b5 |
# ----------------------------------------------------------------------
|
|
|
418249 |
# $Id$
|
|
|
4c79b5 |
# ----------------------------------------------------------------------
|
|
|
4c79b5 |
|
|
|
4c79b5 |
function render_doIdentityImageKsplash {
|
|
|
4c79b5 |
|
|
|
2c2082 |
|
|
|
2c2082 |
local RELDIR=''
|
|
|
2c2082 |
local KSPLASH_TOP=''
|
|
|
2c2082 |
local KSPLASH_PREVIEW=''
|
|
|
8219f0 |
local RELDIRS=$(find $ACTIONVAL -regextype posix-egrep -maxdepth 1 \
|
|
|
07c2fe |
-type d -regex "^.*/${RELEASE_FORMAT}$" | egrep $REGEX)
|
|
|
4c79b5 |
|
|
|
2c2082 |
|
|
|
4c79b5 |
local KSPLASH_PREVIEW_FONT=/home/centos/artwork/trunk/Identity/Fonts/Ttf/DejaVuLGCSans-Bold.ttf
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
# splash only, there is no need to include inactive bar on
|
|
|
4c79b5 |
|
|
|
8219f0 |
local KSPLASH_ACTIVE_BAR="$ACTIONVAL/splash_active_bar.png"
|
|
|
8219f0 |
local KSPLASH_BOTTOM="$ACTIONVAL/splash_bottom.png"
|
|
|
4c79b5 |
|
|
|
2c2082 |
|
|
|
e4d34a |
cli_checkFiles $KSPLASH_ACTIVE_BAR
|
|
|
e4d34a |
cli_checkFiles $KSPLASH_BOTTOM
|
|
|
e4d34a |
cli_checkFiles $KSPLASH_PREVIEW_FONT
|
|
|
4c79b5 |
|
|
|
2c2082 |
|
|
|
2c2082 |
for RELDIR in $RELDIRS;do
|
|
|
2c2082 |
|
|
|
2c2082 |
|
|
|
2c2082 |
KSPLASH_TOP="${RELDIR}/splash_top.png"
|
|
|
2c2082 |
KSPLASH_PREVIEW="${RELDIR}/Preview.png"
|
|
|
2c2082 |
|
|
|
2c2082 |
|
|
|
2c2082 |
cli_checkFiles $KSPLASH_TOP
|
|
|
2c2082 |
|
|
|
2c2082 |
|
|
|
2c2082 |
convert -append \
|
|
|
2c2082 |
$KSPLASH_TOP \
|
|
|
2c2082 |
$KSPLASH_ACTIVE_BAR \
|
|
|
2c2082 |
$KSPLASH_BOTTOM \
|
|
|
2c2082 |
$KSPLASH_PREVIEW
|
|
|
2c2082 |
|
|
|
2c2082 |
|
|
|
2c2082 |
|
|
|
2c2082 |
|
|
|
2c2082 |
|
|
|
2c2082 |
mogrify -draw 'text 6,295 "KDE is up and running."' \
|
|
|
2c2082 |
-fill \
|
|
|
2c2082 |
-font $KSPLASH_PREVIEW_FONT \
|
|
|
2c2082 |
$KSPLASH_PREVIEW
|
|
|
4c79b5 |
|
|
|
2c2082 |
cli_printMessage "$KSPLASH_PREVIEW" "AsSavedAsLine"
|
|
|
4c79b5 |
|
|
|
2c2082 |
done
|
|
|
4c79b5 |
|
|
|
ec641d |
|
|
|
ec641d |
echo '----------------------------------------------------------------------'
|
|
|
ec641d |
|
|
|
4c79b5 |
}
|