fix missing patch source path

This commit is contained in:
aliriza committed 2022-11-16 09:50:29 +00:00
1 parent 5ecc1ed75a
commit b1f5723f7e
4 files changed
+12 -10

No files matched your search

+4 -4
View File
@@ -1,5 +1,5 @@
#!/bin/bash
set -ex
set -e
move_package(){
mkdir -p output
find -type f | grep -v "output"| grep "$(uname -m).ymp$" | sort -V | while read line ; do
@@ -10,12 +10,12 @@ move_package(){
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
if ! find ./output/ -type f | grep "${name}_" | grep "$(uname -m).ymp$" &>/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 || exit 1
ymp --sandbox --shared="$path" build "$path" --no-source --ignore-dependency --use=all --allow-oem || exit 1
move_package
echo -e "\033[33;1m<<= BINARY BUILD DONE:\033[;0m $line"
fi
done
ymp index output --allow-oem --verbose --move --name="main"
ymp index output --allow-oem --move --name="main"