unset first rest; anyp=nil depp=nil allp=nil
wantarchs=$(sed -n '/^[Aa]rchitecture:/ s/^[^:]*: *//p' "$dsc")
: ${wantarchs:=any}
+ unset buildarchs buildarchs_seen=:
## Work through the available targets assigning builds to them. This is
## actually a little tricky.
*/*) target=${archs%/*} host=${archs#*/} ;;
*) target=$archs host=$archs; t=$suite-$target/$host ;;
esac
+ case $buildarchs_seen in
+ *:$target:*)
+ ;;
+ *)
+ buildarchs=${buildarchs+$buildarchs }$target
+ buildarchs_seen=$buildarchs_seen$target:
+ ;;
+ esac
## Work through the architectures which we can build.
for arch in $wantarchs; do