diff options
author | Jonathan Bauer | 2012-06-22 15:32:43 +0200 |
---|---|---|
committer | Jonathan Bauer | 2012-06-22 15:32:43 +0200 |
commit | 162a7a9795202b49aaed89f8040826d2c6aa9a3b (patch) | |
tree | 1d5406e4bab2a4420323e64e9718c155996eaa07 | |
parent | clearing cookies + fix for multiple loadURLDone connects (diff) | |
download | fbgui-162a7a9795202b49aaed89f8040826d2c6aa9a3b.tar.gz fbgui-162a7a9795202b49aaed89f8040826d2c6aa9a3b.tar.xz fbgui-162a7a9795202b49aaed89f8040826d2c6aa9a3b.zip |
renamed build-pkg.sh to pkg.sh
-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 |