#!/bin/bash set -e find -type f | grep ympbuild | while read line ; do echo -e "\033[33;1m=>> BINARY BUILD START:\033[;0m $line" if ! ls $(dirname $line)/*$(uname -m).ymp ; then ymp build $(dirname $line) --verbose --no-source --ignore-dependency --allow-oem fi echo -e "\033[33;1m<<= BINARY BUILD DONE:\033[;0m $line" done [[ -d output ]] && rm -rf output mkdir -p output echo "