diff options
-rwxr-xr-x | pkg.sh | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ +#!/bin/bash +# this script requires fbgui to be compiled. +# To compile use: +# ./build.sh (TODO) + +QT_VERSION=QtEmbedded-4.8.0 + +[ -f fbgui.tgz ] && rm fbgui.tgz + +mkdir -p pkg + +cd pkg + +mkdir -p bin +cp ../build/src/fbgui/fbgui bin +strip bin/fbgui + +mkdir -p usr/local/Trolltech/${QT_VERSION}/lib +cp -r /usr/local/Trolltech/${QT_VERSION}/lib/fonts \ + usr/local/Trolltech/${QT_VERSION}/lib/ + +for SHARED_LIBRARY in `ldd bin/fbgui | awk '{print $3}' |grep ^/` +do +#echo "$SHARED_LIBRARY" +DIR=`dirname $SHARED_LIBRARY | cut -c2-` +[ ! -d $DIR ] && mkdir -p $DIR +[ ! -s "`echo $SHARED_LIBRARY | cut -c2-`" ] && \ +cp $SHARED_LIBRARY `echo $SHARED_LIBRARY | cut -c2-` +done + +mkdir -p etc +cp ../fbgui.conf etc + +tar czf ../fbgui.tgz usr etc lib bin + +cd - &> /dev/null +rm -rf pkg |