1 files changed, 23 insertions(+), 0 deletions(-)
A build.sh
A build.sh => build.sh +23 -0
@@ 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