summaryrefslogblamecommitdiffstats
path: root/build-static.sh
blob: de05b266bc1ab746c8ec3f7062b1928015a7d9f0 (plain) (tree)




























                                                    
#!/bin/bash
###############################################
#                                             #
#     fbsplash static builder using qmake     #
#                                             #
###############################################

QT_VERSION=QtEmbedded-4.7.2
SOURCE_DIR=src

if [ "$1" = "-c" ]
then
	[ -d bin ] && rm -rf bin
	[ -d build ] && rm -rf build
fi

if [ ! -f ${SOURCE_DIR}/fbsplash.pro ]
then
	echo "No 'fbsplash.pro' found!"
	exit 1
fi

cd ${SOURCE_DIR}

/usr/local/Trolltech/${QT_VERSION}/bin/qmake && make

strip ../bin/fbsplash

cd - &>/dev/null