summaryrefslogtreecommitdiff
path: root/BitKeeper
diff options
context:
space:
mode:
authorunknown <msvensson@shellback.(none)>2006-09-15 11:03:55 +0200
committerunknown <msvensson@shellback.(none)>2006-09-15 11:03:55 +0200
commit39d888ccd14930d7f06dfeff72f074fb23bdda42 (patch)
treee2a64bdffc32b5ca0d401d5ad4bf4e2126ef1a2a /BitKeeper
parent756baf00231539daecf6a5ddfd93d3ff6cdafc18 (diff)
parent38d2f5951291d4c3f313edfc9482cc7ef4558c41 (diff)
downloadmariadb-git-39d888ccd14930d7f06dfeff72f074fb23bdda42.tar.gz
Merge bk-internal:/home/bk/mysql-5.0-maint
into shellback.(none):/home/msvensson/mysql/mysql-5.0-maint
Diffstat (limited to 'BitKeeper')
-rwxr-xr-xBitKeeper/triggers/post-commit18
1 files changed, 15 insertions, 3 deletions
diff --git a/BitKeeper/triggers/post-commit b/BitKeeper/triggers/post-commit
index 22d183eae3a..981b55c66ec 100755
--- a/BitKeeper/triggers/post-commit
+++ b/BitKeeper/triggers/post-commit
@@ -6,6 +6,13 @@ COMMITS=commits@lists.mysql.com
DOCS=docs-commit@mysql.com
LIMIT=10000
VERSION="5.0"
+BKROOT=`bk root`
+
+if [ -x /usr/sbin/sendmail ]; then
+ SENDMAIL=/usr/sbin/sendmail
+else
+ SENDMAIL=sendmail
+fi
if [ "$REAL_EMAIL" = "" ]
then
@@ -58,7 +65,9 @@ $BH
EOF
bk changes -v -r+
bk cset -r+ -d
- ) | /usr/sbin/sendmail -t
+ ) > $BKROOT/BitKeeper/tmp/dev_public.txt
+
+$SENDMAIL -t < $BKROOT/BitKeeper/tmp/dev_public.txt
#++
# commits@ mail
@@ -82,7 +91,9 @@ 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
+ ) | bk sed -e ${LIMIT}q > $BKROOT/BitKeeper/tmp/commits.txt
+
+$SENDMAIL -t < $BKROOT/BitKeeper/tmp/commits.txt
#++
# docs-commit@ mail
@@ -102,7 +113,8 @@ Subject: bk commit - $VERSION tree (Manual) ($CHANGESET)$BS
EOF
bk changes -v -r+
bk cset -r+ -d
- ) | /usr/sbin/sendmail -t
+ ) > $BKROOT/BitKeeper/tmp/docs.txt
+ $SENDMAIL -t < $BKROOT/BitKeeper/tmp/docs.txt
fi
else