4 HOST=chinstrap.ubuntu.com
7 echo "Usage: $0 <changes file>"
14 # read until Files: section
17 if [ "$line" = "Files:" ]; then
25 read -u 3 md5sum size section priority fname
26 if [ -z "$fname" ] || echo "$md5sum" | grep -q :; then break; fi
27 files[$count]="$fname"
31 if [ $count = 0 ]; then
32 echo "No files found. Exiting."
36 echo "Uploading files to $HOST..."
38 scp ${files[*]} $1 $LOGIN@$HOST:
40 if grep -q '^Distribution:.*security' "$1"; then
46 echo "dput'ing to queue $QUEUE..."
47 ssh $LOGIN@$HOST "dput -u $QUEUE $1 && rm ${files[*]} $1"