From 9f17f2aa3db1779d00a6e2b53b6d6b357e9a4dce Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Wed, 5 Oct 2022 08:22:34 +0200 Subject: [PATCH] started working on build script --- build.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..a12c6aa --- /dev/null +++ b/build.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# Needs: fd, bash + +function build() { + pkg="$1" + echo Building $pkg + + cd $pkg + abuild -r + + cd .. +} + +if [ "$1" = "all" ]; then + echo Building all + fd --type d | \ + while read pkg; do + build $pkg + done +else + echo Building "$1" + build $1 +fi -- 2.38.5