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/mail_error | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 tools/mail_error (limited to 'tools/mail_error') diff --git a/tools/mail_error b/tools/mail_error deleted file mode 100755 index aabb579c..00000000 --- a/tools/mail_error +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -# mail_error -o file -m email_address command -# Runs command from cron and redirects all output to file -# If command rc != 0, sends output to email_address - -function die { echo $1 ; exit 1; } - -# Must be export so that sfsnapshot uses correct versions -# of GNU toolchain -export PATH=$HOME/bin:$HOME/local/bin:$PATH - -while getopts "o:m:" c; do - case $c in - o) output_file=$OPTARG;; - m) email=$OPTARG;; - \*) echo "oops";; - esac -done -shift $(($OPTIND-1)) - -[[ -z $1 ]] && die "Must specify command" - -if ! "$@" > $output_file 2>&1 ; then - mail -s "mail_error fail: $1" $email < $output_file -fi -- cgit v1.2.3-74-g34f1