mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 15:54:37 +01:00
5d2a74f97e
BitKeeper/triggers/post-commit: Added List-ID: header for easier filtering. BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
25 lines
394 B
Bash
Executable file
25 lines
394 B
Bash
Executable file
#!/bin/sh
|
|
|
|
#shift
|
|
TO=dev@mysql.com
|
|
FROM=$USER@mysql.com
|
|
|
|
BK_STATUS=$BK_STATUS$BK_COMMIT
|
|
|
|
if [ "$BK_STATUS" = OK ]
|
|
then
|
|
echo "Commit successful, notifying developers at $TO"
|
|
(
|
|
cat <<EOF
|
|
List-ID: <bk.mysql>
|
|
From: $FROM
|
|
To: $TO
|
|
Subject: bk commit
|
|
|
|
EOF
|
|
bk changes -v -r+
|
|
bk cset -r+ -d
|
|
) | /usr/sbin/sendmail -t
|
|
else
|
|
echo "commit failed because '$BK_STATUS', sorry life is hard..."
|
|
fi
|