From fff4d55394ad67b0d7ef1d0f55b86e3c2bd24217 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 7 Jul 2008 12:23:25 +0200 Subject: [PATCH] drop uup, dput works at home now --- uup | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100755 uup diff --git a/uup b/uup deleted file mode 100755 index 62e2afe..0000000 --- a/uup +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -e - -LOGIN=pitti -HOST=chinstrap.ubuntu.com - -if [ -z "$1" ]; then - echo "Usage: $0 " - exit 0 -fi - -# open changes file -exec 3<$1 - -# read until Files: section -while true; do - read -u 3 line - if [ "$line" = "Files:" ]; then - break - fi -done - -# read files -count=0 -while true; do - read -u 3 md5sum size section priority fname - if [ -z "$fname" ] || echo "$md5sum" | grep -q :; then break; fi - files[$count]="$fname" - ((count=count+1)) -done - -if [ $count = 0 ]; then - echo "No files found. Exiting." - exit -1 -fi - -echo "Uploading files to $HOST..." -echo ${files[*]} $1 -scp ${files[*]} $1 $LOGIN@$HOST: - -if grep -q '^Distribution:.*security' "$1"; then - QUEUE=security -else - QUEUE=ubuntu -fi - -echo "dput'ing to queue $QUEUE..." -ssh $LOGIN@$HOST "dput -u $QUEUE $1 && rm ${files[*]} $1" -- 2.39.2