blob: 4e8a690439710a3730580d7135fb044f950edc9e [file] [log] [blame]
david_williams51256372010-04-20 21:04:25 +00001#!/usr/bin/env bash
david_williams4e4949d2008-12-13 18:17:17 +00002
3PROJECT=$1
4if [ -z $PROJECT ]
5then
6 echo "must provide project name as first argumnet"
7 exit 9;
8fi
9TODIR=$2
10if [ -z $TODIR ]
11then
12 echo "must provide TODIR name as first argumnet"
13 exit 8;
14fi
15DROPDIR=$3
16if [ -z $DROPDIR ]
17then
18 echo "must provide DROPDIR name as first argumnet"
19 exit 7;
20fi
21
22# ideally, the user executing this mail will have this special file in their home direcotry,
23# that can specify a custom 'from' variable, but still use your "real" ID that is subscribed
24# to the mailing lists
25# set from="\"Your Friendly WTP Builder\" <david_williams@us.ibm.com>"
david_williamsacb65562008-12-13 20:02:58 +000026# correction ... doesn't work. Seems the subscription system set's the "from" name, so doesn't work when
david_williams4e4949d2008-12-13 18:17:17 +000027# sent to mail list (just other email addresses)
28export MAILRC=~/.buildermailrc
29
30SUBJECT="Declaring Build for $PROJECT: $DROPDIR"
31
32# wtp-dev for promotes, wtp-releng for smoketest requests
33TO="wtp-dev@eclipse.org"
34
35#make sure reply to goes back to the list
36REPLYTO="wtp-dev@eclipse.org"
37#we need to "fix up" TODIR since it's in file form, not URL
38URLTODIR=${TODIR##*${DOWNLOAD_ROOT}}
39mail -s "$SUBJECT" -R "$REPLYTO" "$TO" <<EOF
40
41
42Download Page:
43http://download.eclipse.org$URLTODIR$DROPDIR
44
45General Smoketest results page:
46http://wiki.eclipse.org/WTP_Smoke_Test_Results
47
48EOF
49