aboutsummaryrefslogtreecommitdiff
path: root/tools/sfupload
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sfupload')
-rwxr-xr-xtools/sfupload27
1 files changed, 0 insertions, 27 deletions
diff --git a/tools/sfupload b/tools/sfupload
deleted file mode 100755
index 8925fcb5..00000000
--- a/tools/sfupload
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-# SYNTAX:
-# sfupload {version} [username]
-# Quick script to upload new nagiosplug tarball to SF
-# Expects $1 = version number of tarball
-# $2 to be username on SF, defaults to $USER
-# Expects to be run from top level dir
-
-function die { echo $1; exit 1; }
-
-tarball="nagios-plugins-$1.tar.gz"
-
-if [[ ! -e $tarball ]]; then
- die "No tarball found: $tarball";
-fi
-md5sum $tarball > $tarball.md5sum
-
-user=${2:-$USER}
-echo "Logging in as $user"
-cat <<EOF | sftp $user@frs.sourceforge.net || die "Cannot upload to SF"
-cd uploads
-put $tarball
-put $tarball.md5sum
-EOF
-
-echo "Finished uploading files to SF"
-