build order finder added
This commit is contained in:
1 parent
6bd9496a6c
commit
b936f85ded
2 files changed
+13
No files matched your search
@@ -1,3 +1,4 @@
|
||||
*.ymp
|
||||
output
|
||||
.ash_history
|
||||
b
|
||||
@@ -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
|
||||
Reference in new issue
Block a user