@@ 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 }' )"