#!/bin/bash # # Copyright (C) 2006 Brian Brazil # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # set -ex . config IMGDIR=$PWD/images rm -rf $WORKINGDIR mkdir -p $WORKINGDIR cd $WORKINGDIR apt-get source ubuntu-artwork$VERSION apt-get --yes build-dep ubuntu-artwork$VERSION cd ubuntu-artwork-* # Splash screen during gdm login if [ -f $IMGDIR/$DISTRONAME_L-gdm-login-splash.png ]; then cp $IMGDIR/$DISTRONAME_L-gdm-login-splash.png art/splash/"$DISTRONAME_L-basic.png" else convert -size 640x170 xc:black -fill $LOGO_COLOUR -gravity East -pointsize 24 -draw "text 15,0 '$DISTRONAME'" art/splash/"$DISTRONAME_L-basic.png" fi sed -i "s/^SPLASH =.*/SPLASH = $DISTRONAME_L-basic.png/" art/splash/Makefile.am # Logo on the gdm login screen if [ -f $IMGDIR/$DISTRONAME_L-gdm-login-logo.png ]; then cp $IMGDIR/$DISTRONAME_L-gdm-login-logo.png art/gdm/Human/ubuntu.png else convert -size 610x166 xc:transparent -fill black -gravity Center -draw "text 30,50 '$TAGLINE'" -pointsize 72 -draw "text 0,0 '$DISTRONAME'" art/gdm/Human/ubuntu.png fi # Background of Splash screen if [ -f $IMGDIR/$DISTRONAME_L-gdm-login-background.png ]; then cp $IMGDIR/$DISTRONAME_L-gdm-login-background.png art/gdm/Human/background.png fi if [ -f $IMGDIR/$DISTRONAME_L-gdm-login.xml ]; then cp $IMGDIR/$DISTRONAME_L-gdm-login.xml ./art/gdm/Human/Human.xml fi # Desktop Wallpaper if [ -f $IMGDIR/$DISTRONAME_L-wallpaper-1600x1200.png ];then cp $IMGDIR/$DISTRONAME_L-wallpaper-1600x1200.png art/wallpapers/warty-final-ubuntu.png rm art/wallpapers/warty-final-ws-ubuntu.png cat < art/wallpapers/ubuntu-wallpapers.xml.in <_name>$DISTRONAME Wallpaper /usr/share/backgrounds/warty-final-ubuntu.png stretched #305A92 #305A92 solid EOF sed -i 's/warty-final-ws-ubuntu.png//' art/wallpapers/Makefile.am rm community/wallpapers/*.png cat < community/wallpapers/community-art-wallpapers.xml EOF sed -i 's/[^ ]*.png//g;s/^wallpaper_DATA = \\/wallpaper_DATA =/' community/wallpapers/Makefile.am fi # Icons if [ -f $IMGDIR/$DISTRONAME_L-icon-22x22.png ]; then cp $IMGDIR/$DISTRONAME_L-icon-22x22.png art/icons/Human/22x22/places/start-here.png else convert -size 22x22 xc:transparent -fill $LOGO_COLOUR -gravity Center -pointsize 18 -draw "text 0,-2 '$LOGO_LETTER'" art/icons/Human/22x22/places/start-here.png fi if [ -f $IMGDIR/$DISTRONAME_L-icon-24x24.png ]; then cp $IMGDIR/$DISTRONAME_L-icon-24x24.png art/icons/Human/24x24/places/start-here.png else convert -size 24x24 xc:transparent -fill $LOGO_COLOUR -gravity Center -pointsize 20 -draw "text 0,-2 '$LOGO_LETTER'" art/icons/Human/24x24/places/start-here.png fi if [ -f $IMGDIR/$DISTRONAME_L-icon-48x48.png ]; then cp $IMGDIR/$DISTRONAME_L-icon-48x48.png art/icons/Human/48x48/places/start-here.png else convert -size 48x48 xc:transparent -fill $LOGO_COLOUR -gravity Center -pointsize 44 -draw "text 0,-4 '$LOGO_LETTER'" art/icons/Human/48x48/places/start-here.png fi cp art/icons/Human/48x48/places/start-here.png art/icons/hicolor/48x48/apps/distributor-logo.png sed -i "s/ubuntu-artwork/${DISTRONAME_L}-artwork/" debian/rules dch -D $RELEASE -v $(sed -n '1s#^.*(\(.*\)).*#\1'${DISTRONAME_L}${ARTWORK_VERSION}'#p' debian/changelog) "Munged to show $DISTRONAME graphics" sed -i "1s/^ubuntu-artwork/${DISTRONAME_L}-artwork/" debian/changelog sed -i "s/ubuntu-artwork/${DISTRONAME_L}-artwork/; s/Ubuntu/$DISTRONAME/; s/^\\(Package: ${DISTRONAME_L}-artwork.*\\)/\1\\nConflicts: ubuntu-artwork/;" debian/control dpkg-buildpackage -rfakeroot -us -uc