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