#!/bin/bash # # Copyright (C) 2006 Christian Fernandez # # 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 usplash$VERSION apt-get --yes build-dep usplash$VERSION cd usplash-* # Splash screen during boot if [ -f $IMGDIR/$DISTRONAME_L-usplash.png ]; then cp $IMGDIR/$DISTRONAME_L-usplash.png usplash-artwork.png else convert -size 640x400 -depth 8 -colors 16 xc:black -fill $LOGO_COLOUR -gravity North -draw "text 30,72 '$TAGLINE'" -pointsize 72 -draw "text 0,0 '$DISTRONAME'" usplash-artwork.png fi sed -i 's/universe/main/' debian/control echo | dch -D $RELEASE -v $(sed -n '1s#^.*(\(.*\)).*#\1'${DISTRONAME_L}${USPLASH_VERSION}'#p' debian/changelog) "Change usplash" dpkg-buildpackage -rfakeroot -us -uc