Author: Paul_R
Date: 2008-09-19 12:52:36 +0200 (Fri, 19 Sep 2008)
New Revision: 1918

Added:
   software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/templates/
   
software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/templates/template.att
Modified:
   software_suite_v2/tuxware/installers/unix/trunk/build.sh
Log:
* Added functions to pack the skin and the templates
* Added a function to remove all .svn before creating deb of tarball


Modified: software_suite_v2/tuxware/installers/unix/trunk/build.sh
===================================================================
--- software_suite_v2/tuxware/installers/unix/trunk/build.sh    2008-09-19 
10:24:22 UTC (rev 1917)
+++ software_suite_v2/tuxware/installers/unix/trunk/build.sh    2008-09-19 
10:52:36 UTC (rev 1918)
@@ -3,6 +3,7 @@
 POSTINST=build/postinst
 CONTROL=build/DEBIAN/control
 CC_DEPS_URL=http://www.kysoh.com/download/resources/cc_deps/linux
+SKIN_URL=http://www.kysoh.com/download/resources/skin
 
 
 createTemp () {
@@ -28,7 +29,10 @@
     mkdir build/opt/tuxdroid/controlcenter
     mkdir build/opt/tuxdroid/python_api
     mkdir build/opt/tuxdroid/firmware
-    mkdir build/opt/tuxdroid/misc
+    mkdir build/opt/tuxdroid/resources
+    mkdir build/opt/tuxdroid/resources/updater
+    mkdir build/opt/tuxdroid/resources/templates
+    mkdir build/opt/tuxdroid/resources/themepack
 }
 
 packServer () {
@@ -119,9 +123,24 @@
 
 packUpdater () {
     echo -- Copying the gadget updater
-    cp -r build_deps/common/updater/tux_updater build/opt/tuxdroid/misc
+    cp -r build_deps/common/updater/tux_updater \
+    build/opt/tuxdroid/resources/updater
 }
 
+packJavaSkin () {
+    echo -- Copying the java themepack
+    wget -q $SKIN_URL/version.txt
+    FILE=`cat version.txt`
+    wget -q $SKIN_URL/$FILE
+    cp $FILE build/opt/tuxdroid/resources/themepack
+    rm version.txt $FILE
+}
+
+packTemplates () {
+    echo -- Copying templates files
+    cp build_deps/common/templates/* build/opt/tuxdroid/resources/templates
+}
+
 serverBin () {
     echo -- Creating server binary
     echo "#!/bin/bash" >build/opt/tuxdroid/bin/tuxhttpserver
@@ -141,7 +160,7 @@
 updaterBin () {
     echo -- Creating control center binary
     echo "#!/bin/bash" >build/opt/tuxdroid/bin/tux_updater
-    echo "source /opt/tuxdroid/misc/tux_updater" |tee -a \
+    echo "source /opt/tuxdroid/resources/updater/tux_updater" |tee -a \
     build/opt/tuxdroid/bin/tux_updater >/dev/null
     chmod +x build/opt/tuxdroid/bin/tux_updater
 }
@@ -213,6 +232,7 @@
     mv build/opt tuxsetup-$VERSION/
     mv build/usr tuxsetup-$VERSION/
     mv build/etc tuxsetup-$VERSION/
+    rmSVN
     sudo chown -R root:root tuxsetup-$VERSION
     rm -rf temp build
     dpkg-deb --build tuxsetup-$VERSION
@@ -235,6 +255,7 @@
     mv build/usr tuxsetup-$VERSION/mirror/
     mv build/* tuxsetup-$VERSION/
     rm -rf tuxsetup-$VERSION/etc
+    rmSVN
     tar -cf tuxsetup-$VERSION.tar.gz tuxsetup-$VERSION
     rm -rf build temp tuxsetup-$VERSION
 }
@@ -269,7 +290,14 @@
     packTarball
 }
 
+rmSVN () {
+    find tuxsetup-$VERSION -name ".svn" > filelist
+    for i in `cat filelist`; do
+        rm -rf $i
+    done
+}
 
+
 test $1
 if [ $? != 0 ]; then
     usage
@@ -310,6 +338,8 @@
 packShared
 packCCDeps
 packUpdater
+packJavaSkin
+packTemplates
 serverBin
 ccBin
 updaterBin

Added: 
software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/templates/template.att
===================================================================
(Binary files differ)


Property changes on: 
software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/templates/template.att
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to