diff options
author | unknown <rburnett@production.mysql.com> | 2006-03-13 16:16:46 +0100 |
---|---|---|
committer | unknown <rburnett@production.mysql.com> | 2006-03-13 16:16:46 +0100 |
commit | 2b8d142f6ff5a13d5e210a3f99da836e3b88b13a (patch) | |
tree | dd3fa695693a0aefdf487eac99b6ddfc61274a93 /BitKeeper | |
parent | 43da9989b3d6d8fa8735bc4764bc79dcbf2b33be (diff) | |
download | mariadb-git-2b8d142f6ff5a13d5e210a3f99da836e3b88b13a.tar.gz |
post-commit:
Small change to enable sending of mails from Windows bk clones
BitKeeper/triggers/post-commit:
Small change to enable sending of mails from Windows bk clones
Diffstat (limited to 'BitKeeper')
-rwxr-xr-x | BitKeeper/triggers/post-commit | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/BitKeeper/triggers/post-commit b/BitKeeper/triggers/post-commit index 7506f9ad772..ce5e03b0ac9 100755 --- a/BitKeeper/triggers/post-commit +++ b/BitKeeper/triggers/post-commit @@ -14,6 +14,12 @@ else FROM=$REAL_EMAIL fi +if [ -x /usr/sbin/sendmail ]; then + SENDMAIL=/usr/sbin/sendmail +else + SENDMAIL=sendmail +fi + BK_STATUS=$BK_STATUS$BK_COMMIT if [ "$BK_STATUS" = OK ] @@ -58,7 +64,7 @@ $BH EOF bk changes -v -r+ bk cset -r+ -d - ) | /usr/sbin/sendmail -t + ) | $SENDMAIL -t #++ # commits@ mail @@ -82,7 +88,7 @@ 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 + ) | head -n $LIMIT | $SENDMAIL -t #++ # docs-commit@ mail @@ -102,7 +108,7 @@ Subject: bk commit - $VERSION tree (Manual) ($CHANGESET)$BS EOF bk changes -v -r+ bk cset -r+ -d - ) | /usr/sbin/sendmail -t + ) | $SENDMAIL -t fi else |