morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus.git
Log | Files | Refs | Submodules | README | LICENSE

commit f677ea294773430af7ee50f261178c836df26950
parent 9e6a8b36d113fdcb5458a67556db18341525edd9
Author: sin <sin@2f30.org>
Date:   Tue Sep 24 12:27:46 +0100

Don't rebuild already built/installed dependencies

Diffstat:
stage0 | 14+++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/stage0 b/stage0 @@ -12,6 +12,7 @@ mkdir -p src cross ./build cross-scripts/musl # Build stage0 packages +installed_deps= pkglist=$(ls pkgs) for pkg in $pkglist; do while read line; do @@ -21,7 +22,18 @@ for pkg in $pkglist; do deps=$(echo $line | cut -d' ' -f2-) # Build dependencies for package in order for d in $deps; do - ./build cross-scripts/$d + install=1 + for i in $installed_deps; do + if [ $i == $d ]; then + # If already installed, then skip it + install=0 + break + fi + done + if [ $install -eq 1 ]; then + ./build cross-scripts/$d + installed_deps="$installed_deps $d" + fi done done < DEPS ./build pkgs/$pkg