blob: 56c50814679095627c284efc7b2763f9054966a7 [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
david_williams5d2f2812011-02-15 03:47:26 +000012 echo "must provide TODIR name as second argumnet"
david_williams4e4949d2008-12-13 18:17:17 +000013 exit 8;
14fi
15DROPDIR=$3
16if [ -z $DROPDIR ]
17then
david_williams5d2f2812011-02-15 03:47:26 +000018 echo "must provide DROPDIR name as third argumnet"
david_williams4e4949d2008-12-13 18:17:17 +000019 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