You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cf...@apache.org on 2012/08/10 19:53:54 UTC

svn commit: r1371790 - /incubator/flex/trunk/mustella/mini_run.sh

Author: cframpton
Date: Fri Aug 10 17:53:54 2012
New Revision: 1371790

URL: http://svn.apache.org/viewvc?rev=1371790&view=rev
Log:
local.properties should be optional.

Modified:
    incubator/flex/trunk/mustella/mini_run.sh

Modified: incubator/flex/trunk/mustella/mini_run.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/mini_run.sh?rev=1371790&r1=1371789&r2=1371790&view=diff
==============================================================================
--- incubator/flex/trunk/mustella/mini_run.sh (original)
+++ incubator/flex/trunk/mustella/mini_run.sh Fri Aug 10 17:53:54 2012
@@ -177,8 +177,12 @@ no_run=0
 
 beliteral=0
 
-check_air=`egrep "use_air" local.properties | egrep -v "^#" | awk -F"=" '{print $2}'`
-run_mobile_tests=`egrep "run_mobile_tests" local.properties | egrep -v "^#" | awk -F"=" '{print $2}'`
+# local.properties should be optional
+if [ -f "local.properties" ]
+    then
+    check_air=`egrep "use_air" local.properties | egrep -v "^#" | awk -F"=" '{print $2}'`
+    run_mobile_tests=`egrep "run_mobile_tests" local.properties | egrep -v "^#" | awk -F"=" '{print $2}'`
+fi
 
 os=`uname -s | tr '[A-Z]' '[a-z]'`
 tmp=`echo $os | egrep "cygwin"`
@@ -192,11 +196,8 @@ fi
 
 mkdir $tmp 2>/dev/null
 
-
-
 # arg_list=`echo "$*" | awk -f cleanup.awk `
 
-
 # echo "here is the arg list: $arg_list"
 
 # exit
@@ -330,9 +331,6 @@ do
             continue
         fi
 
-
-
-
         if [ "$i" = "-all" ]
             then
             run_all=1
@@ -344,7 +342,6 @@ do
             continue
         fi
 
-
         if [ "$i" = "-createImages" ]
             then
             createImages=1