Files
binary-repo/buildall.sh
T
2022-11-09 23:06:46 +00:00

22 lines
760 B
Bash

#!/bin/bash
set -e
move_package(){
mkdir -p output
find -type f | grep -v "output"| grep "$(uname -m).ymp$" | sort -V | while read line ; do
mv $line output
done
}
find -type f | grep ympbuild | sort -V | while read line ; do
name=$(basename $(dirname $line))
path=$(realpath $(dirname $line))
if ! find ./output/ -type f | grep "${name}_" | grep "$(uname -m).ymp$" 2>/dev/null ; then
echo -e "\033[33;1m<<= BINARY BUILD DONE:\033[;0m $line"
ymp --sandbox --shared="$path" build "$path" --verbose --no-source --ignore-dependency --use=all --allow-oem
move_package
echo -e "\033[33;1m<<= BINARY BUILD DONE:\033[;0m $line"
fi
done
ymp index output --allow-oem --verbose --move --name="main"