build order finder added

This commit is contained in:
sulincix committed 2024-10-16 07:45:09 +00:00
1 parent 6bd9496a6c
commit b936f85ded
2 files changed
+13

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
*.ymp
output
.ash_history
b
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# It will compile all packages by generated order
find_path(){
find "$1" -type d | grep -e "/$2$" | head -n 1
}
dir=$1
ymp info --deps \@${dir/\//.} | tr " " "\n" | while read line ; do
path=$(find_path "$1" $line)
if [ -f $path/ympbuild ] ; then
echo ymp build --install --no-emerge --output=output $path
fi
done