- eval $(perl -ne 'print if s/^(Architecture): /\1=/' ${Source}_${Version}.dsc)
- case $Architecture in
- all)
- sbuild -d $distribution --arch-all ${Source}_${Version}.dsc;;
- any)
+ arch_any=0
+ sed -ne 's/^Architecture: //p' ${Source}_${Version}.dsc | while read; do
+ case "$REPLY" in
+ all)
+ ;;
+ any)
+ arch_any=1;;
+ *)
+ echo "invirt-build-release: arch '$Architecture' unimplemented" >&2
+ exit 1;;
+ esac
+ done
+ if [ $arch_any -eq 0 ]; then
+ sbuild -d $distribution --arch-all ${Source}_${Version}.dsc
+ else