From b936f85ded7c41dccc58725557bc9c55e06512df Mon Sep 17 00:00:00 2001 From: sulincix Date: Wed, 16 Oct 2024 07:45:09 +0000 Subject: [PATCH] build order finder added --- .gitignore | 1 + build.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 build.sh diff --git a/.gitignore b/.gitignore index 8120aede..51c46b73 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.ymp output .ash_history +b \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 00000000..c3e03eae --- /dev/null +++ b/build.sh @@ -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 \ No newline at end of file