~comcloudway/ccw-aports

9f17f2aa3db1779d00a6e2b53b6d6b357e9a4dce — Jakob Meier 2 years ago 104d54e
started working on build script
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