#!/bin/bash -e

[ -n "${1}" -a -n "${2}" ] || { printf "Usage: %s <host> <dist>\n" "${0}" >&2; exit 1; }

for dsc in http://httpredir.debian.org/debian/pool/main/d/dpkg/dpkg_1.18.4.dsc \
           http://httpredir.debian.org/debian/pool/main/d/dh-autoreconf/dh-autoreconf_12.dsc \
           http://httpredir.debian.org/debian/pool/main/d/debhelper/debhelper_9.20160403.dsc; do
	mini-buildd-tool "${1}" portext "${dsc}" "${2}"
	read -p"Continue with RET when package has been build" DUMMY
done
