~comcloudway/ccw-aports

e638bdc17478d179c851606ca42aca4bd8af4b4a — Jakob Meier 1 year, 3 months ago ecab51c
Added rootbld compatibility

Usage: ABUILD_COMMAND="abuild rootbld" ./build.sh <args...>
1 files changed, 7 insertions(+), 2 deletions(-)

M build.sh
M build.sh => build.sh +7 -2
@@ 1,7 1,12 @@
#!/bin/sh
# Needs: fd, bash, abuild, dateutils

export ABUILD_FLAGS="$ABUILD_FLAGS"
export ABUILD_FLAGS="-r $ABUILD_FLAGS"
if [ "$ABUILD_COMMAND" = "" ]; then
    echo Defaulting to abuild
    export ABUILD_COMMAND="abuild $ABUILD_FLAGS"
fi
export APORTSDIR="$(realpath $(dirname $0))"

set -eu -o pipefail



@@ 15,7 20,7 @@ function build_package() {
    echo ">>> Building $pkg from $repo"

    cd $repo/$pkg
    abuild -r $ABUILD_FLAGS
    $ABUILD_COMMAND

    cd ../..
    end="$( date | awk -F ' ' '{ print $4 }' )"