summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2012-06-22 15:32:43 +0200
committerJonathan Bauer2012-06-22 15:32:43 +0200
commit162a7a9795202b49aaed89f8040826d2c6aa9a3b (patch)
tree1d5406e4bab2a4420323e64e9718c155996eaa07
parentclearing cookies + fix for multiple loadURLDone connects (diff)
downloadfbgui-162a7a9795202b49aaed89f8040826d2c6aa9a3b.tar.gz
fbgui-162a7a9795202b49aaed89f8040826d2c6aa9a3b.tar.xz
fbgui-162a7a9795202b49aaed89f8040826d2c6aa9a3b.zip
renamed build-pkg.sh to pkg.sh
-rwxr-xr-xpkg.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkg.sh b/pkg.sh
new file mode 100755
index 0000000..fcb1e2a
--- /dev/null
+++ b/pkg.sh
@@ -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