morpheus

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

commit feaf7a1e9d73f53a07d4743a8a75cd71e162dce8
parent 1b6193915bc5ac768c8a6b53b3d9cfb6e69f69d3
Author: sin <sin@2f30.org>
Date:   Mon, 23 Sep 2013 19:36:54 +0100

Add DEPS to list the dependencies for a package

Diffstat:
ADEPS | 3+++
Mstage0 | 13++++++++++---
2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/DEPS b/DEPS @@ -0,0 +1,3 @@ +em ncurses +dropbear zlib +tmux libevent ncurses diff --git a/stage0 b/stage0 @@ -10,13 +10,20 @@ mkdir -p src cross # Deps list ./build cross-scripts/musl -./build cross-scripts/libevent -./build cross-scripts/ncurses -./build cross-scripts/zlib # Build stage0 packages pkglist=$(ls pkgs) for pkg in $pkglist; do + while read line; do + if [ $(echo $line | cut -d' ' -f1) != $pkg ]; then + continue + fi + deps=$(echo $line | cut -d' ' -f2-) + # Build dependencies for package in order + for d in $deps; do + ./build cross-scripts/$d + done + done < DEPS ./build pkgs/$pkg done