mirror of
https://github.com/MariaDB/server.git
synced 2025-01-26 00:34:18 +01:00
f0409fa920
BitKeeper/etc/ignore: auto-union BitKeeper/etc/logging_ok: auto-union BUILD/SETUP.sh: Auto merged BUILD/compile-pentium-debug: Auto merged BitKeeper/triggers/post-commit: Auto merged configure.in: Auto merged Docs/manual.texi: Auto merged client/mysql.cc: Auto merged client/mysqldump.c: Auto merged client/mysqltest.c: Auto merged extra/mysql_install.c: Auto merged extra/resolve_stack_dump.c: Auto merged extra/resolveip.c: Auto merged include/my_sys.h: Auto merged include/mysqld_error.h: Auto merged isam/pack_isam.c: Auto merged libmysql/Makefile.shared: Auto merged libmysql/libmysql.c: Auto merged myisam/ft_dump.c: Auto merged myisam/ft_test1.c: Auto merged myisam/ftdefs.h: Auto merged myisam/mi_check.c: Auto merged myisam/mi_test1.c: Auto merged myisam/mi_write.c: Auto merged myisam/myisamchk.c: Auto merged myisam/myisampack.c: Auto merged mysql-test/mysql-test-run.sh: Auto merged mysql-test/r/select_found.result: Auto merged mysql-test/t/select_found.test: Auto merged mysys/charset.c: Auto merged mysys/default.c: Auto merged mysys/hash.c: Auto merged sql/field.cc: Auto merged sql/gen_lex_hash.cc: Auto merged sql/ha_innodb.cc: Auto merged sql/hostname.cc: Auto merged sql/item_cmpfunc.h: Auto merged sql/item_strfunc.cc: Auto merged sql/item_timefunc.h: Auto merged sql/lex.h: Auto merged sql/log.cc: Auto merged sql/mysql_priv.h: Auto merged sql/repl_failsafe.cc: Auto merged sql/slave.cc: Auto merged sql/sql_acl.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_cache.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_db.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_string.cc: Auto merged sql/sql_table.cc: Auto merged sql/sql_union.cc: Auto merged sql/share/czech/errmsg.txt: Auto merged sql/share/danish/errmsg.txt: Auto merged sql/share/dutch/errmsg.txt: Auto merged sql/share/english/errmsg.txt: Auto merged sql/share/estonian/errmsg.txt: Auto merged sql/share/german/errmsg.txt: Auto merged sql/share/greek/errmsg.txt: Auto merged sql/share/hungarian/errmsg.txt: Auto merged sql/share/italian/errmsg.txt: Auto merged sql/share/japanese/errmsg.txt: Auto merged sql/share/korean/errmsg.txt: Auto merged sql/share/norwegian-ny/errmsg.txt: Auto merged sql/share/norwegian/errmsg.txt: Auto merged sql/sql_update.cc: Auto merged sql/structs.h: Auto merged sql/share/polish/errmsg.txt: Auto merged sql/share/portuguese/errmsg.txt: Auto merged sql/share/romanian/errmsg.txt: Auto merged sql/share/russian/errmsg.txt: Auto merged sql/share/slovak/errmsg.txt: Auto merged sql/share/spanish/errmsg.txt: Auto merged sql/share/swedish/errmsg.txt: Auto merged sql/share/ukrainian/errmsg.txt: Auto merged strings/Makefile.am: Auto merged strings/ctype-ujis.c: Auto merged tools/mysqlmanager.c: Auto merged
83 lines
1.6 KiB
Bash
Executable file
83 lines
1.6 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
#shift
|
|
TO=dev-public@mysql.com
|
|
FROM=$USER@mysql.com
|
|
INTERNALS=internals@lists.mysql.com
|
|
DOCS=docs-commit@mysql.com
|
|
LIMIT=10000
|
|
|
|
if [ "$REAL_EMAIL" = "" ]
|
|
then
|
|
echo "Warning: you must set REAL_EMAIL in your profile"
|
|
else
|
|
FROM=$REAL_EMAIL
|
|
fi
|
|
|
|
BK_STATUS=$BK_STATUS$BK_COMMIT
|
|
|
|
if [ "$BK_STATUS" = OK ]
|
|
then
|
|
|
|
#++
|
|
# dev-public@
|
|
#--
|
|
echo "Commit successful, notifying developers at $TO"
|
|
(
|
|
cat <<EOF
|
|
List-ID: <bk.mysql-4.1>
|
|
From: $FROM
|
|
To: $TO
|
|
Subject: bk commit - 4.1 tree
|
|
|
|
EOF
|
|
bk changes -v -r+
|
|
bk cset -r+ -d
|
|
) | head -n $LIMIT | /usr/sbin/sendmail -t
|
|
|
|
#++
|
|
# internals@ mail
|
|
#--
|
|
echo "Notifying internals list at $INTERNALS"
|
|
(
|
|
cat <<EOF
|
|
List-ID: <bk.mysql-4.1>
|
|
From: $FROM
|
|
To: $INTERNALS
|
|
Subject: bk commit into 4.1 tree
|
|
|
|
Below is the list of changes that have just been committed into a
|
|
4.1 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
|
|
see http://www.mysql.com/doc/I/n/Installing_source_tree.html
|
|
|
|
EOF
|
|
bk changes -v -r+
|
|
bk cset -r+ -d
|
|
) | head -n $LIMIT | /usr/sbin/sendmail -t
|
|
|
|
#++
|
|
# 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-4.1>
|
|
From: $FROM
|
|
To: $DOCS
|
|
Subject: bk commit - 4.1 tree (Manual)
|
|
|
|
EOF
|
|
bk changes -v -r+
|
|
bk cset -r+ -d
|
|
) | head -n $LIMIT | /usr/sbin/sendmail -t
|
|
fi
|
|
|
|
else
|
|
echo "commit failed because '$BK_STATUS', sorry life is hard..."
|
|
fi
|