Author: ks156
Date: 2008-12-01 12:25:54 +0100 (Mon, 01 Dec 2008)
New Revision: 2955

Modified:
   software_suite_v2/tuxware/installers/unix/branches/prefix_install/build.sh
Log:
* Added attitunes


Modified: 
software_suite_v2/tuxware/installers/unix/branches/prefix_install/build.sh
===================================================================
--- software_suite_v2/tuxware/installers/unix/branches/prefix_install/build.sh  
2008-12-01 10:50:25 UTC (rev 2954)
+++ software_suite_v2/tuxware/installers/unix/branches/prefix_install/build.sh  
2008-12-01 11:25:54 UTC (rev 2955)
@@ -20,8 +20,7 @@
 TOOLS_URL=$KYSOH_URL/tools
 TEMPLATES_URL=$KYSOH_URL/resources/templates
 SKIN_URL=$KYSOH_URL/resources/skins
-#ATT_URL=$KYSOH_URL/$INST_DIR/attitunes
-#SKIN_URL=http://www.kysoh.com/download/resources/skin
+ATT_URL=$KYSOH_URL/resources/attitunes
 TMP_RULES_FILE=/tmp/tuxtmp
 
 #KYSOH_URL=http://www.kysoh.com/download
@@ -306,8 +305,6 @@
     svn export -q --force \
         
http://svn.tuxisalive.com/software_suite_v2/software/http_server_resources/idle_behavior/trunk
 /tmp/idle_behavior
     cp /tmp/idle_behavior/ResourceTuxIdle.py 
$MIRROR_DIR/$PREFIX/$SERVER_DIR/resources
-    mkdir $MIRROR_DIR/$PREFIX/$ATTITUNES_DIR/idleBehaviors
-    cp /tmp/idle_behavior/att/* 
$MIRROR_DIR/$PREFIX/$ATTITUNES_DIR/idleBehaviors
     rm -r /tmp/idle_behavior
     rm -rf $DIR $FILE
 }
@@ -369,6 +366,20 @@
     chmod +x $MIRROR_DIR/$PREFIX/$BIN_DIR/tux_control_center
 }
 
+installFromZip () {
+    echo Downloading : $url
+    file=${url##*/}
+    wget -q $url -O /tmp/$file
+    unzip -q /tmp/$file -d /tmp/tux_tmp
+    rm /tmp/$file
+    #file=${file##.*}
+    if [ ! -d $MIRROR_DIR/$path ]; then
+        mkdir -p $MIRROR_DIR/$path
+    fi
+    cp /tmp/tux_tmp/* $MIRROR_DIR/$path/
+    rm -rf /tmp/tux_tmp
+}   
+
 installFromFtp () {
     echo Downloading : $url
     # Retrieve the filename from the PATH
@@ -395,7 +406,11 @@
         echo $line|cut -d ';' -f 4 |sed "s/\$PREFIX/\\${PREFIX}/g" >url
         url=`cat url`
         rm url
-        installFromFtp
+        if [ `echo $line|cut -d ';' -f 1` == COPY ]; then
+            installFromFtp
+        elif [ `echo $line|cut -d ';' -f 1` == ZIP ]; then
+            installFromZip
+        fi
     done < /tmp/tuxtmp1
     rm /tmp/tuxtmp1 $TMP_RULES_FILE
 }
@@ -406,6 +421,7 @@
     retrieveFiles $TOOLS_URL
     retrieveFiles $TEMPLATES_URL
     retrieveFiles $SKIN_URL
+    retrieveFiles $ATT_URL
 }
 
 # Create the updater binary
@@ -719,8 +735,6 @@
 packPixmaps
 # <--- Download file from the ftp serveur --->
 parseFtp
-#packJavaSkin
-#packAttitunes
 # <--- Create executables --->
 serverBin
 tuxshBin


-------------------------------------------------------------------------
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