Enhance autobuild detection 69/10269/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 19 Jul 2017 12:54:20 +0000 (14:54 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 19 Jul 2017 12:54:20 +0000 (14:54 +0200)
Change-Id: I256844ae5bc73ed5e1bf350f6fa411b75728f705
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/common/include-apps-build-app.sh

index 68ccc6a..694dcf7 100644 (file)
@@ -67,22 +67,22 @@ if [[ ! x"yes" = x"$HANDLED" ]] && $(echo "$TARGETPROJECT" | grep -q "apps/"); t
 
         # Fixme: use aglbuild script
         set -x
-        export DONE=false
-        if test ! $DONE -a -f conf.d/autobuild/agl/autobuild ; then
+        export DONE=0
+        if test x"0" = x"$DONE" -a -f conf.d/autobuild/agl/autobuild ; then
             mkdir -p $(pwd)/package/
             conf.d/autobuild/agl/autobuild package DEST=$(pwd)/package/
-            export DONE=true
+            export DONE=1
         fi
-        if test ! $DONE -a -f Makefile ; then
+        if test x"0" = x"$DONE" -a -f Makefile ; then
             make
             make package
-            export DONE=true
+            export DONE=1
         fi
-        if test ! $DONE -a -f ${MYPROJECT}.pro; then
+        if test x"0" = x"$DONE" -a -f ${MYPROJECT}.pro; then
             qmake
             make
             make package
-            export DONE=true
+            export DONE=1
         fi
     popd