mariadb/BitKeeper/triggers/post-commit

84 lines
1.6 KiB
Text
Raw Normal View History

#!/bin/sh
Makefile.am create */errmsg.sys during build, not install Delete: sql/share/spanish/errmsg.sys sql/share/swedish/errmsg.sys sql/share/slovak/errmsg.sys sql/share/polish/errmsg.sys sql/share/romanian/errmsg.sys sql/share/russian/errmsg.sys sql/share/portuguese/errmsg.sys sql/share/hungarian/errmsg.sys sql/share/italian/errmsg.sys sql/share/japanese/errmsg.sys sql/share/korean/errmsg.sys sql/share/greek/errmsg.sys sql/share/czech/errmsg.sys sql/share/danish/errmsg.sys sql/share/dutch/errmsg.sys sql/share/english/errmsg.sys sql/share/estonian/errmsg.sys sql/share/french/errmsg.sys sql/share/german/errmsg.sys post-commit adapted for bk-2.0beta5 sql/share/Makefile.am: create */errmsg.sys during build, not install BitKeeper/deleted/.del-errmsg.sys~1ea60675399c84c: Delete: sql/share/german/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~3a6d0fb8451a3313: Delete: sql/share/danish/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~83b86d7ed4cdd5d0: Delete: sql/share/estonian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~93104a2bd5c732a: Delete: sql/share/czech/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~9f024dc5e6fe50f5: Delete: sql/share/french/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~b5aff4d08478bafd: Delete: sql/share/dutch/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~f29bd4ea5aaf54c8: Delete: sql/share/english/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~302478c84697dc00: Delete: sql/share/japanese/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~a30e3687ae75a7c9: Delete: sql/share/korean/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~aff82c16a77fc800: Delete: sql/share/hungarian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~c5108ecb850b79a: Delete: sql/share/italian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~fedf585fa73e7cf1: Delete: sql/share/greek/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~126b03af92054f0f: Delete: sql/share/polish/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~72688df0beeabcb3: Delete: sql/share/russian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~c0187322f8c9d805: Delete: sql/share/portuguese/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~e08aa93bae96d25e: Delete: sql/share/romanian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~10c8f32da39070b2: Delete: sql/share/spanish/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~148510616ae825cf: Delete: sql/share/slovak/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~dd772e93db859993: Delete: sql/share/swedish/errmsg.sys BitKeeper/triggers/post-commit: adapted for bk-2.0beta5
2001-01-07 14:51:04 +01:00
#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
Makefile.am create */errmsg.sys during build, not install Delete: sql/share/spanish/errmsg.sys sql/share/swedish/errmsg.sys sql/share/slovak/errmsg.sys sql/share/polish/errmsg.sys sql/share/romanian/errmsg.sys sql/share/russian/errmsg.sys sql/share/portuguese/errmsg.sys sql/share/hungarian/errmsg.sys sql/share/italian/errmsg.sys sql/share/japanese/errmsg.sys sql/share/korean/errmsg.sys sql/share/greek/errmsg.sys sql/share/czech/errmsg.sys sql/share/danish/errmsg.sys sql/share/dutch/errmsg.sys sql/share/english/errmsg.sys sql/share/estonian/errmsg.sys sql/share/french/errmsg.sys sql/share/german/errmsg.sys post-commit adapted for bk-2.0beta5 sql/share/Makefile.am: create */errmsg.sys during build, not install BitKeeper/deleted/.del-errmsg.sys~1ea60675399c84c: Delete: sql/share/german/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~3a6d0fb8451a3313: Delete: sql/share/danish/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~83b86d7ed4cdd5d0: Delete: sql/share/estonian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~93104a2bd5c732a: Delete: sql/share/czech/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~9f024dc5e6fe50f5: Delete: sql/share/french/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~b5aff4d08478bafd: Delete: sql/share/dutch/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~f29bd4ea5aaf54c8: Delete: sql/share/english/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~302478c84697dc00: Delete: sql/share/japanese/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~a30e3687ae75a7c9: Delete: sql/share/korean/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~aff82c16a77fc800: Delete: sql/share/hungarian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~c5108ecb850b79a: Delete: sql/share/italian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~fedf585fa73e7cf1: Delete: sql/share/greek/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~126b03af92054f0f: Delete: sql/share/polish/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~72688df0beeabcb3: Delete: sql/share/russian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~c0187322f8c9d805: Delete: sql/share/portuguese/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~e08aa93bae96d25e: Delete: sql/share/romanian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~10c8f32da39070b2: Delete: sql/share/spanish/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~148510616ae825cf: Delete: sql/share/slovak/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~dd772e93db859993: Delete: sql/share/swedish/errmsg.sys BitKeeper/triggers/post-commit: adapted for bk-2.0beta5
2001-01-07 14:51:04 +01:00
if [ "$BK_STATUS" = OK ]
then
#++
# dev-public@
#--
echo "Commit successful, notifying developers at $TO"
(
cat <<EOF
List-ID: <bk.mysql-4.0>
From: $FROM
To: $TO
Subject: bk commit - 4.0 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.0>
From: $FROM
To: $INTERNALS
Subject: bk commit into 4.0 tree
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
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/"
2001-11-08 00:14:16 +01:00
if [ $? -eq 0 ]
then
echo "Notifying docs list at $DOCS"
(
cat <<EOF
List-ID: <bk.mysql-4.0>
From: $FROM
To: $DOCS
Subject: bk commit - 4.0 tree (Manual)
EOF
bk changes -v -r+
bk cset -r+ -d
) | head -n $LIMIT | /usr/sbin/sendmail -t
fi
else
Makefile.am create */errmsg.sys during build, not install Delete: sql/share/spanish/errmsg.sys sql/share/swedish/errmsg.sys sql/share/slovak/errmsg.sys sql/share/polish/errmsg.sys sql/share/romanian/errmsg.sys sql/share/russian/errmsg.sys sql/share/portuguese/errmsg.sys sql/share/hungarian/errmsg.sys sql/share/italian/errmsg.sys sql/share/japanese/errmsg.sys sql/share/korean/errmsg.sys sql/share/greek/errmsg.sys sql/share/czech/errmsg.sys sql/share/danish/errmsg.sys sql/share/dutch/errmsg.sys sql/share/english/errmsg.sys sql/share/estonian/errmsg.sys sql/share/french/errmsg.sys sql/share/german/errmsg.sys post-commit adapted for bk-2.0beta5 sql/share/Makefile.am: create */errmsg.sys during build, not install BitKeeper/deleted/.del-errmsg.sys~1ea60675399c84c: Delete: sql/share/german/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~3a6d0fb8451a3313: Delete: sql/share/danish/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~83b86d7ed4cdd5d0: Delete: sql/share/estonian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~93104a2bd5c732a: Delete: sql/share/czech/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~9f024dc5e6fe50f5: Delete: sql/share/french/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~b5aff4d08478bafd: Delete: sql/share/dutch/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~f29bd4ea5aaf54c8: Delete: sql/share/english/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~302478c84697dc00: Delete: sql/share/japanese/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~a30e3687ae75a7c9: Delete: sql/share/korean/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~aff82c16a77fc800: Delete: sql/share/hungarian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~c5108ecb850b79a: Delete: sql/share/italian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~fedf585fa73e7cf1: Delete: sql/share/greek/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~126b03af92054f0f: Delete: sql/share/polish/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~72688df0beeabcb3: Delete: sql/share/russian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~c0187322f8c9d805: Delete: sql/share/portuguese/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~e08aa93bae96d25e: Delete: sql/share/romanian/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~10c8f32da39070b2: Delete: sql/share/spanish/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~148510616ae825cf: Delete: sql/share/slovak/errmsg.sys BitKeeper/deleted/.del-errmsg.sys~dd772e93db859993: Delete: sql/share/swedish/errmsg.sys BitKeeper/triggers/post-commit: adapted for bk-2.0beta5
2001-01-07 14:51:04 +01:00
echo "commit failed because '$BK_STATUS', sorry life is hard..."
fi