summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-18 13:30:56 +0100
committerJonathan Bauer2011-03-18 13:30:56 +0100
commitff00e9729d81afcc093daac13da5e8ffa97d0ab0 (patch)
tree9f3f3d00b14d43a459e871926cb5993b251e4020 /build.sh
parenttoggle action: now properly in action list of fbgui (diff)
downloadfbgui-ff00e9729d81afcc093daac13da5e8ffa97d0ab0.tar.gz
fbgui-ff00e9729d81afcc093daac13da5e8ffa97d0ab0.tar.xz
fbgui-ff00e9729d81afcc093daac13da5e8ffa97d0ab0.zip
builder thanks to a benefactor ;) few modifications to include fbgui.conf (in /etc/fbgui.conf)
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..f401c87
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+QT_VERSION=QtEmbedded-4.7.1
+
+mkdir -p pkg
+
+cd pkg
+
+mkdir -p bin
+cp ../src/fbgui bin
+
+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 ../src/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