fix script
This commit is contained in:
1 parent
8b691e5f3a
commit
35dec2e5c8
1 file changed
+3
-3
@@ -2,16 +2,16 @@
|
|||||||
set -e
|
set -e
|
||||||
move_source(){
|
move_source(){
|
||||||
mkdir -p output
|
mkdir -p output
|
||||||
find -type f | grep -v "output"| grep "source.ymp$" | sort -V | while read line ; do
|
find -type f | grep -v "output"| grep ".ymp$" | sort -V | while read line ; do
|
||||||
mv $line output
|
mv $line output
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
find -type f | grep ympbuild | sort -V | while read line ; do
|
find -type f | grep ympbuild | sort -V | while read line ; do
|
||||||
name=$(basename $(dirname $line))
|
name=$(basename $(dirname $line))
|
||||||
path=$(realpath $(dirname $line))
|
path=$(realpath $(dirname $line))
|
||||||
if ! find ./output/ -type f | grep "${name}/${name}_" | grep "source.ymp$" &>/dev/null ; then
|
if ! find ./output/ -type f | grep "${name}/${name}_" | grep ".ymp$" &>/dev/null ; then
|
||||||
echo -e "\033[33;1m=>> SOURCE BUILD START:\033[;0m $line"
|
echo -e "\033[33;1m=>> SOURCE BUILD START:\033[;0m $line"
|
||||||
ymp --sandbox --shared="$path" build "$path" --ignore-dependency --use=all --allow-oem --verbose || exit 1
|
ymp --sandbox --shared="$path" build "$path" --ignore-dependency --use=all --allow-oem $@ --verbose || exit 1
|
||||||
move_source
|
move_source
|
||||||
echo -e "\033[33;1m<<= SOURCE BUILD DONE:\033[;0m $line"
|
echo -e "\033[33;1m<<= SOURCE BUILD DONE:\033[;0m $line"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user