diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-27 23:10:53 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-27 23:10:53 +0200 |
commit | 9ae1cd8f91aa6b53404e66588679d852d3972bcd (patch) | |
tree | 1edc8a9ac8e36bf8fabeed7b7b3ad933d691438c /tools/sfupload | |
parent | 983d10e0609175a26675a97129b9e7def18d5f35 (diff) | |
download | monitoring-plugins-9ae1cd8f91aa6b53404e66588679d852d3972bcd.tar.gz |
tools: Remove Drupal/SourceForge scripts
We moved our web site away from Drupal and the snapshots/guidelines away
from SourceForge. The new infrastructure scripts will be maintained in
a separate repository together with the Markdown source of the new web
site.
Diffstat (limited to 'tools/sfupload')
-rwxr-xr-x | tools/sfupload | 27 |
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 @@ | |||
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 | |||
9 | function die { echo $1; exit 1; } | ||
10 | |||
11 | tarball="nagios-plugins-$1.tar.gz" | ||
12 | |||
13 | if [[ ! -e $tarball ]]; then | ||
14 | die "No tarball found: $tarball"; | ||
15 | fi | ||
16 | md5sum $tarball > $tarball.md5sum | ||
17 | |||
18 | user=${2:-$USER} | ||
19 | echo "Logging in as $user" | ||
20 | cat <<EOF | sftp $user@frs.sourceforge.net || die "Cannot upload to SF" | ||
21 | cd uploads | ||
22 | put $tarball | ||
23 | put $tarball.md5sum | ||
24 | EOF | ||
25 | |||
26 | echo "Finished uploading files to SF" | ||
27 | |||