Author: ks156
Date: 2008-12-15 10:29:17 +0100 (Mon, 15 Dec 2008)
New Revision: 3125

Modified:
   
software_suite_v2/software/development_tools/gadget_packer/trunk/tux_gadget_packer
Log:
* Added "executionMode" and "uuid" on the parser.


Modified: 
software_suite_v2/software/development_tools/gadget_packer/trunk/tux_gadget_packer
===================================================================
--- 
software_suite_v2/software/development_tools/gadget_packer/trunk/tux_gadget_packer
  2008-12-15 09:19:12 UTC (rev 3124)
+++ 
software_suite_v2/software/development_tools/gadget_packer/trunk/tux_gadget_packer
  2008-12-15 09:29:17 UTC (rev 3125)
@@ -28,6 +28,14 @@
     if [ $? == 0 ]; then
        DESC_VERSION=`echo $line |cut -f 2 -d '>' |cut -f 1 -d '<'`
     fi
+    echo $line |grep "<executionMode>" >/dev/null
+    if [ $? == 0 ]; then
+       DESC_EXEC=`echo $line |cut -f 2 -d '>' |cut -f 1 -d '<'`
+    fi
+    echo $line |grep "<uuid>" >/dev/null
+    if [ $? == 0 ]; then
+       DESC_UUID=`echo $line |cut -f 2 -d '>' |cut -f 1 -d '<'`
+    fi
 }
 
 # Scan the <parameters></parameters> section
@@ -75,7 +83,8 @@
 verify_xml () {
     log_report "\n Description section :\n"
     if [[ ! -z $DESC_NAME ]] && [[ ! -z $DESC_DESC ]] && \
-       [[ ! -z $DESC_AUTHOR ]] && [[ ! -z $DESC_VERSION ]]; then
+       [[ ! -z $DESC_AUTHOR ]] && [[ ! -z $DESC_VERSION ]] && \
+       [[ ! -z $DESC_EXEC ]] && [[ ! -z $DESC_UUID ]]; then
        log_report ">  Found description $PASSED"
     else 
        if [[ -z $DESC_NAME ]]; then
@@ -90,6 +99,12 @@
        if [[ -z $DESC_VERSION ]]; then
            log_report ">  No gadget's version found $WARNING"
        fi
+       if [[ -z $DESC_EXEC ]]; then
+           log_report ">  No execution mode found $WARNING"
+       fi
+       if [[ -z $DESC_UUID ]]; then
+           log_report ">  No UUID found $WARNING"
+       fi
     fi
     log_report "\n Parameters section :\n"
     if [[ ! -z $PARAM_NAME ]] && [[ ! -z $PARAM_DESC ]] && \
@@ -115,7 +130,6 @@
        log_report ">  Found commands $PASSED"
        log_report ">> Number of commands found : $CMD_COUNT\n"
     else 
-       log_report "Number of commands found : $CMD_COUNT\n"
        if [[ -z $CMD_NAME ]]; then
            log_report ">  No command's name found $WARNING"
        fi


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to