#!/bin/sh -efu

. gb-sh-functions

fail_if_task_abort_requested

. gb-sh-tmpdir

for arch in $GB_ARCH; do
	$0-arch "$arch" ||
		stamp_echo "[$arch] remote setup FAILED" >>"$tmpdir"/FAIL &
done

wait

# Fail if at least one remote arch failed to setup.
if [ -s "$tmpdir"/FAIL ]; then
	cat >&2 "$tmpdir"/FAIL
	exit 1
fi

#stamp_echo >&2 'remote setup OK'
