17 lines
615 B
Bash
17 lines
615 B
Bash
#!/bin/bash
|
|
set -e
|
|
find -type f | grep ympbuild | sort -V | while read line ; do
|
|
name=$(basename $(dirname $line))
|
|
if ! find ./output/ -type f | grep "${name}_" | grep "source.ymp$" 2>/dev/null ; then
|
|
echo -e "\033[33;1m=>> SOURCE BUILD START:\033[;0m $line"
|
|
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
|
|
find -type f | grep -v "output"| grep "source.ymp$" | sort -V | while read line ; do
|
|
mv $line output
|
|
done
|
|
ymp index output --allow-oem --verbose --move
|
|
|