From 9ae1cd8f91aa6b53404e66588679d852d3972bcd Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Fri, 27 Sep 2013 23:10:53 +0200 Subject: 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. --- tools/sfsnapshot | 119 ------------------------------------------------------- 1 file changed, 119 deletions(-) delete mode 100755 tools/sfsnapshot (limited to 'tools/sfsnapshot') diff --git a/tools/sfsnapshot b/tools/sfsnapshot deleted file mode 100755 index 3b71219a..00000000 --- a/tools/sfsnapshot +++ /dev/null @@ -1,119 +0,0 @@ -#! /bin/bash - -# Butchered version of snapshot -# Can only run on the shell compile farm server -# Will always create a snapshot of HEAD -# If want multiple snapshots, just run with "sfsnapshot [branch ...]" -# Assumes: -# ssh setup to send to shell.sf.net and $CF without password prompt -# the compile server has all the prerequisites stated at http://nagiosplug.sourceforge.net/developer-guidelines.html -# Install in cron with something like: -# 47 * * * * $HOME/bin/mail_error -o $HOME/sfsnapshot.out -m tonvoon@users.sf.net sfsnapshot r1_3_0 - -function die { echo $1; exit 1; } - -# This makes the distribution. Expects $1 as branches/name, otherwise uses trunk -function make_dist { - if [[ -n $1 ]] ; then - svn_url_suffix=$1 - name=${1##*/} - else - svn_url_suffix="trunk" - name="trunk" - fi - v="$name-" - - # Get compile server to do the work - # Variables will be expanded locally before being run on $CF - ssh $CF < README -This is the daily SVN snapshot of nagiosplug, consisting of the SVN trunk -and any other branches. - -The nagios-plugins-HEAD.tar.gz link will always go to the latest trunk snapshot -(name kept for existing tinderbox scripts to link correctly). - -The MD5SUM is: -END_README -md5sum *.gz | tee -a README > MD5SUM - - -# Check for *.gz files locally (expect NFS between cf shell server and $CF) -set -x -cd $IN -files=$(ls *.gz 2>/dev/null) -[[ -z $files ]] && die "No files created" -head_file=$(cd $IN && ls -rt *-trunk-*.gz | head -1 2>/dev/null) -cat <<-EOF > /tmp/batchfile.$$ -cd $OUT -rm *.gz -put *.gz -ln $head_file nagios-plugins-HEAD.tar.gz -put MD5SUM -put README readme -EOF - -# Do the actual transfer -# Have to put README down as readme because SF's apache server appears to block README files -sftp -b /tmp/batchfile.$$ $OUT_SERVER - -rm -f $files /tmp/batchfile.$$ - -# Work out success or failure -expected=$(($# + 1)) -set -- $files -[[ $# -ne $expected ]] && die "Expected $expected, got $#" -exit 0 -- cgit v1.2.3-74-g34f1