2000-10-18 19:03:36 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
2001-01-07 14:51:04 +01:00
|
|
|
#shift
|
2001-05-27 01:10:46 -05:00
|
|
|
TO=dev-public@mysql.com
|
2000-10-18 20:59:29 -06:00
|
|
|
FROM=$USER@mysql.com
|
2001-06-11 20:26:24 -06:00
|
|
|
INTERNALS=internals@lists.mysql.com
|
2002-08-12 14:55:07 +10:00
|
|
|
DOCS=docs-commit@mysql.com
|
2001-03-05 10:33:05 +01:00
|
|
|
LIMIT=10000
|
2000-10-18 20:59:29 -06:00
|
|
|
|
2001-04-12 13:46:19 -06:00
|
|
|
if [ "$REAL_EMAIL" = "" ]
|
|
|
|
then
|
|
|
|
echo "Warning: you must set REAL_EMAIL in your profile"
|
|
|
|
else
|
|
|
|
FROM=$REAL_EMAIL
|
|
|
|
fi
|
|
|
|
|
2001-01-14 18:40:26 +02:00
|
|
|
BK_STATUS=$BK_STATUS$BK_COMMIT
|
|
|
|
|
2001-01-07 14:51:04 +01:00
|
|
|
if [ "$BK_STATUS" = OK ]
|
2000-10-18 20:59:29 -06:00
|
|
|
then
|
|
|
|
echo "Commit successful, notifying developers at $TO"
|
|
|
|
(
|
|
|
|
cat <<EOF
|
2001-02-22 14:49:08 -06:00
|
|
|
List-ID: <bk.mysql>
|
2000-10-18 20:59:29 -06:00
|
|
|
From: $FROM
|
|
|
|
To: $TO
|
2001-06-11 20:26:24 -06:00
|
|
|
Subject: bk commit into 3.23 tree
|
|
|
|
|
|
|
|
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
|
|
|
|
Subject: bk commit into 3.23 tree
|
|
|
|
|
2002-08-12 14:55:07 +10:00
|
|
|
Below is the list of changes that have just been committed into a local
|
|
|
|
3.23 repository of $USER. When $USER does a push these changes will
|
|
|
|
be propagated to the main repository and, within 24 hours after the
|
|
|
|
push, to the public repository.
|
|
|
|
For information on how to access the public repository
|
|
|
|
see http://www.mysql.com/doc/I/n/Installing_source_tree.html
|
2000-10-18 20:59:29 -06:00
|
|
|
|
|
|
|
EOF
|
|
|
|
bk changes -v -r+
|
2000-11-04 21:00:41 -07:00
|
|
|
bk cset -r+ -d
|
2001-03-05 10:33:05 +01:00
|
|
|
) | head -n $LIMIT | /usr/sbin/sendmail -t
|
2002-08-12 14:55:07 +10:00
|
|
|
|
|
|
|
#++
|
|
|
|
# docs-commit@ mail
|
|
|
|
# Picks up anything under the Docs subdirectory (relevant for docs team).
|
|
|
|
#--
|
|
|
|
bk changes -v -r+ | grep -q " Docs/"
|
|
|
|
if [ $? -eq 0 ]
|
|
|
|
then
|
|
|
|
echo "Notifying docs list at $DOCS"
|
|
|
|
(
|
|
|
|
cat <<EOF
|
|
|
|
List-ID: <bk.mysql-3.23>
|
|
|
|
From: $FROM
|
|
|
|
To: $DOCS
|
|
|
|
Subject: bk commit - 3.23 tree (Manual)
|
|
|
|
|
|
|
|
EOF
|
|
|
|
bk changes -v -r+
|
|
|
|
bk cset -r+ -d
|
|
|
|
) | head -n $LIMIT | /usr/sbin/sendmail -t
|
|
|
|
fi
|
|
|
|
|
2000-10-18 20:59:29 -06:00
|
|
|
else
|
2002-08-12 14:55:07 +10:00
|
|
|
echo "commit failed because '$BK_STATUS', you may need to re-clone..."
|
2000-10-18 20:59:29 -06:00
|
|
|
fi
|