summaryrefslogtreecommitdiffstats
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 8925fcb..0000000
--- a/tools/sfupload
+++ /dev/null
@@ -1,27 +0,0 @@
1#!/bin/bash
2# SYNTAX:
3# sfupload {version} [username]
4# Quick script to upload new nagiosplug tarball to SF
5# Expects $1 = version number of tarball
6# $2 to be username on SF, defaults to $USER
7# Expects to be run from top level dir
8
9function die { echo $1; exit 1; }
10
11tarball="nagios-plugins-$1.tar.gz"
12
13if [[ ! -e $tarball ]]; then
14 die "No tarball found: $tarball";
15fi
16md5sum $tarball > $tarball.md5sum
17
18user=${2:-$USER}
19echo "Logging in as $user"
20cat <<EOF | sftp $user@frs.sourceforge.net || die "Cannot upload to SF"
21cd uploads
22put $tarball
23put $tarball.md5sum
24EOF
25
26echo "Finished uploading files to SF"
27