#!/bin/bash
find -type f | grep ympbuild | while read line ; do
ymp build $(dirname $line) --verbose --no-binary --ignore-dependency --allow-oem
done
[[ -d output ]] && rm -rf output
mkdir -p output
find -type f | grep "source.ymp$" | sort -V | while read line ; do
mv $line output
echo "* $(basename $line)
" >> output/index.html
done
ymp index output --allow-oem
echo "* ymp-index.yaml
" >> output/index.html >> output/index.html