Files
binary-repo/update.sh
T
2022-11-08 08:46:45 +00:00

19 lines
791 B
Bash

#!/bin/bash
set -e
find -type f | grep ympbuild | sort -V | while read line ; do
echo -e "\033[33;1m=>> SOURCE BUILD START:\033[;0m $line"
name=$(basename $(dirname $line))
if ! ls ./output/${name}_*source.ymp 2>/dev/null ; then
ymp build $(dirname $line) --verbose --no-binary --ignore-dependency --allow-oem
echo -e "\033[33;1m<<= SOURCE BUILD DONE:\033[;0m $line"
fi
done
mkdir -p output
echo "<h1><b>YMP index:</b></h1><br>" > output/index.html
find -type f | grep -v "output"| grep "source.ymp$" | sort -V | while read line ; do
mv $line output
echo "* <a href=\"$(basename $line)\">$(basename $line)</a><br>" >> output/index.html
done
ymp index output --allow-oem
echo "* <a href=\"ymp-index.yaml\">ymp-index.yaml</a><br>" >> output/index.html