+#!/bin/bash
+
+set -u
+set -e
+set -o pipefail
+
+if [ $# -lt 5 ]; then
+ echo "Usage: $0 filename version arch changes_file suite"
+ exit 1
+fi
+
+export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
+. $SCRIPTVARS
+
+INPUT="$1" # Tarball to read, compressed with gzip
+VERSION="$2"
+ARCH="$3"
+CHANGES="$4" # Changes file for the upload
+SUITE="$5"
+
+error() {
+ echo "$*"
+ exit 1
+}
+
+case $SUITE in
+ unstable|sid)
+ : # OK for automated byband processing
+ ;;
+ *)
+ error "Reject: task overrides can only be processed automatically for uploads to unstable"
+ ;;
+esac