script update
This commit is contained in:
1 parent
431c8cb28d
commit
0b940b76f6
2 files changed
+16
-8
No files matched your search
+9
-4
@@ -1,16 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
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
|
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}_" | grep "$(uname -m).ymp$" 2>/dev/null ; then
|
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"
|
echo -e "\033[33;1m<<= BINARY BUILD DONE:\033[;0m $line"
|
||||||
ymp --sandbox --shared="$path" build "$path" --verbose --no-source --ignore-dependency --allow-oem
|
ymp --sandbox --shared="$path" build "$path" --verbose --no-source --ignore-dependency --allow-oem
|
||||||
|
move_package
|
||||||
echo -e "\033[33;1m<<= BINARY BUILD DONE:\033[;0m $line"
|
echo -e "\033[33;1m<<= BINARY BUILD DONE:\033[;0m $line"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
mkdir -p output
|
|
||||||
find -type f | grep -v "output"| grep "$(uname -m).ymp$" | sort -V | while read line ; do
|
|
||||||
mv $line output
|
|
||||||
done
|
|
||||||
ymp index output --allow-oem --verbose --move
|
ymp index output --allow-oem --verbose --move
|
||||||
@@ -1,17 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
move_source(){
|
||||||
|
mkdir -p output
|
||||||
|
find -type f | grep -v "output"| grep "source.ymp$" | sort -V | while read line ; do
|
||||||
|
mv $line output
|
||||||
|
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}_" | grep "source.ymp$" 2>/dev/null ; then
|
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"
|
echo -e "\033[33;1m=>> SOURCE BUILD START:\033[;0m $line"
|
||||||
ymp --sandbox --shared="$path" build "$path" --verbose --no-binary --ignore-dependency --allow-oem
|
ymp --sandbox --shared="$path" build "$path" --verbose --no-binary --ignore-dependency --allow-oem
|
||||||
|
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
|
||||||
done
|
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
|
ymp index output --allow-oem --verbose --move
|
||||||
|
|
||||||
Reference in new issue
Block a user