2000-10-19 03:03:36 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2001-01-07 14:51:04 +01:00
|
|
|
#shift
|
2001-05-27 08:37:46 +02:00
|
|
|
TO=dev-public@mysql.com
|
2000-10-19 04:59:29 +02:00
|
|
|
FROM=$USER@mysql.com
|
2001-06-12 04:26:24 +02:00
|
|
|
INTERNALS=internals@lists.mysql.com
|
2001-03-05 10:33:05 +01:00
|
|
|
LIMIT=10000
|
2000-10-19 04:59:29 +02:00
|
|
|
|
2001-04-12 03:38:02 +02:00
|
|
|
if [ "$REAL_EMAIL" = "" ]
|
|
|
|
then
|
|
|
|
echo "Warning: you must set REAL_EMAIL in your profile"
|
|
|
|
else
|
|
|
|
FROM=$REAL_EMAIL
|
|
|
|
fi
|
|
|
|
|
2001-01-14 17:40:26 +01:00
|
|
|
BK_STATUS=$BK_STATUS$BK_COMMIT
|
|
|
|
|
2001-01-07 14:51:04 +01:00
|
|
|
if [ "$BK_STATUS" = OK ]
|
2000-10-19 04:59:29 +02:00
|
|
|
then
|
|
|
|
echo "Commit successful, notifying developers at $TO"
|
|
|
|
(
|
|
|
|
cat <<EOF
|
2001-02-22 21:49:08 +01:00
|
|
|
List-ID: <bk.mysql>
|
2000-10-19 04:59:29 +02:00
|
|
|
From: $FROM
|
|
|
|
To: $TO
|
2001-04-12 03:38:02 +02:00
|
|
|
Subject: bk commit - 4.0 tree
|
2000-10-19 04:59:29 +02:00
|
|
|
|
2001-06-12 04:26:24 +02:00
|
|
|
EOF
|
|
|
|
bk changes -v -r+
|
|
|
|
bk cset -r+ -d
|
|
|
|
) | head -n $LIMIT | /usr/sbin/sendmail -t
|
|
|
|
echo "Notifying internals list at $INTERNALS"
|
|
|
|
(
|
|
|
|
cat <<EOF
|
|
|
|
List-ID: <bk.mysql>
|
|
|
|
From: $FROM
|
|
|
|
To: $INTERNALS
|
2001-06-12 22:06:05 +02:00
|
|
|
Subject: bk commit into 4.0 tree
|
2001-06-12 04:26:24 +02:00
|
|
|
|
2001-06-29 03:48:49 +02:00
|
|
|
Below is the list of changes that have just been committed into a
|
|
|
|
4.0 repository of $USER. When $USER does a push, they will be propogated to
|
|
|
|
the main repository and within 24 hours after the push to the public repository.
|
|
|
|
For information on how to access the public repository
|
2001-06-12 04:26:24 +02:00
|
|
|
see http://www.mysql.com/doc/I/n/Installing_source_tree.html
|
2000-10-19 04:59:29 +02:00
|
|
|
|
|
|
|
EOF
|
|
|
|
bk changes -v -r+
|
2000-11-05 05:00:41 +01:00
|
|
|
bk cset -r+ -d
|
2001-03-05 10:33:05 +01:00
|
|
|
) | head -n $LIMIT | /usr/sbin/sendmail -t
|
2000-10-19 04:59:29 +02:00
|
|
|
else
|
2001-01-07 14:51:04 +01:00
|
|
|
echo "commit failed because '$BK_STATUS', sorry life is hard..."
|
2000-10-19 04:59:29 +02:00
|
|
|
fi
|