]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/poky-autobuild: Fix ordering
authorRichard Purdie <richard@openedhand.com>
Mon, 28 Apr 2008 19:29:37 +0000 (19:29 +0000)
committerRichard Purdie <richard@openedhand.com>
Mon, 28 Apr 2008 19:29:37 +0000 (19:29 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4362 311d38ba-8fff-0310-9ca6-ca027cbcb966

scripts/poky-autobuild

index b4a47908413f780e16590367379977daae9421c2..bacaca97cd641b1b7c03bb698d778ba872a1c7f3 100755 (executable)
@@ -31,10 +31,13 @@ if [ "xpreamble" = "x$1" ]; then
     exit 0
 fi
 
+BBTARGET="$1"
+shift
+
 . ./scripts/poky-env-internal
 POSTPROCESS=`which poky-autobuild-postprocess`
 
-if [ "xcomplete" = "x$1" ]; then
+if [ "xcomplete" = "x$BBTARGET" ]; then
     touch ./build/tmp/deploy/images/images-complete
     chmod a+w ./build/tmp/deploy/images/images-complete
     if [ "x$POSTPROCESS" != "x" ]; then
@@ -55,9 +58,6 @@ if [ ! -e "$CONFFILE" ]; then
     echo 'DL_DIR = "/srv/poky/sources"' >> "$CONFFILE"
 fi
 
-BBTARGET="$1"
-shift
-
 bitbake $BBTARGET
 
 if [ "x$POSTPROCESS" != "x" ]; then