mariadb/BitKeeper/triggers/post-commit

107 lines
2.2 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
FROM=$USER@mysql.com
INTERNALS=internals@lists.mysql.com
DOCS=docs-commit@mysql.com
LIMIT=10000
VERSION="4.0"
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
HAS_ACTUAL_CHANGES=`bk cset -r+ -d | grep -v "^#"`
if [ "$HAS_ACTUAL_CHANGES" = "" ]
then
echo ChangeSet had no real changes, not sending emails
exit
fi
2003-10-25 22:43:19 +02:00
CHANGESET=`bk -R prs -r+ -h -d':P:::I:' ChangeSet`
BUG=`bk -R prs -r+ -h -d':C:' ChangeSet | sed -ne 's/^.*[Bb][Uu][Gg] *# *\([0-9][0-9]*\).*$/\1/p'`
if [ "$BUG" = "" ]
then
TO=dev-public@mysql.com
BS=""
BH=""
else
TO=dev-bugs@mysql.com
BS=" BUG#$BUG"
# need newline here
BH="X-Bug: $BUG
"
fi
#++
# dev-public@ / dev-bugs@
#--
echo "Commit successful, notifying developers at $TO"
(
cat <<EOF
List-ID: <bk.mysql-$VERSION>
From: $FROM
To: $TO
Subject: bk commit - $VERSION tree ($CHANGESET)$BS
$BH
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-$VERSION>
From: $FROM
To: $INTERNALS
Subject: bk commit into $VERSION tree ($CHANGESET)$BS
$BH
Below is the list of changes that have just been committed into a local
$VERSION 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://dev.mysql.com/doc/mysql/en/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-$VERSION>
From: $FROM
To: $DOCS
Subject: bk commit - $VERSION tree (Manual) ($CHANGESET)$BS
EOF
bk changes -v -r+
bk cset -r+ -d
) | head -n $LIMIT | /usr/sbin/sendmail -t
fi
else
echo "commit failed because '$BK_STATUS', you may need to re-clone..."
fi