# Path to Qt binaries (sysroot-cross)
export PATH=/home/arpadb/build/OSELAS.BSP-Phytec-phyCORE-i.MX27-PD11.1.1/platform-phyCORE-i.MX27/sysroot-cross/bin:$PATH
# Path to toolchain
export PATH=$PATH:/opt/OSELAS.Toolchain-2011.02.0/arm-v5te-linux-gnueabi/gcc-4.5.2-glibc-2.13-binutils-2.21-kernel-2.6.36-sanitized/bin

PROJECT=hello

if qmake -project -o $PROJECT.pro
then
  if qmake
  then
    if make clean
    then
      if make
      then
        if scp ./$PROJECT root@192.168.56.30:/home
        then
          echo "OK"
          exit
        fi
      fi
    fi
  fi
fi

echo FAILED

# Log into imx27 and run /home/xxxx -qws

