merge scripts
This commit is contained in:
1 parent
219369e785
commit
8b691e5f3a
3 files changed
+3
-23
No files matched your search
-20
@@ -1,20 +0,0 @@
|
||||
#!/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}/${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" --no-source --ignore-dependency --use=all --allow-oem --ignore-ssl || exit 1
|
||||
move_package
|
||||
echo -e "\033[33;1m<<= BINARY BUILD DONE:\033[;0m $line"
|
||||
fi
|
||||
done
|
||||
|
||||
ymp repo --index output --allow-oem --move --name="main"
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
# Call locale-gen
|
||||
current=$(date +%s -r /etc/locale.gen)
|
||||
touch /var/lib/ymp/sysconf/glib/update.date
|
||||
touch /var/lib/ymp/sysconf/glibc/update.date
|
||||
last=$(cat /var/lib/ymp/sysconf/glibc/update.date)
|
||||
if [ "$current" != "$last" ] ; then
|
||||
/bin/locale-gen
|
||||
|
||||
@@ -11,10 +11,10 @@ find -type f | grep ympbuild | sort -V | while read line ; do
|
||||
path=$(realpath $(dirname $line))
|
||||
if ! find ./output/ -type f | grep "${name}/${name}_" | grep "source.ymp$" &>/dev/null ; then
|
||||
echo -e "\033[33;1m=>> SOURCE BUILD START:\033[;0m $line"
|
||||
ymp --sandbox --shared="$path" build "$path" --no-binary --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
|
||||
echo -e "\033[33;1m<<= SOURCE BUILD DONE:\033[;0m $line"
|
||||
fi
|
||||
done
|
||||
ymp repo --index output --allow-oem --move --name="main"
|
||||
ymp repo --index output --allow-oem --move --name="main"
|
||||
|
||||
Reference in new issue
Block a user