summaryrefslogtreecommitdiff
path: root/BitKeeper/triggers
diff options
context:
space:
mode:
authorunknown <iggy@rolltop.ignatz42.dyndns.org>2006-09-14 11:00:38 -0400
committerunknown <iggy@rolltop.ignatz42.dyndns.org>2006-09-14 11:00:38 -0400
commitd3907c926c3f3f851cce4193d04490758ccb4ddd (patch)
tree9bfe2647f018f129491502a25b3edcb77bf64704 /BitKeeper/triggers
parent3c6ca775e2d99e820ac70e30598a7c562aab3bbd (diff)
parent2c79eff8d3e149206b073b16cb715be593fd321c (diff)
downloadmariadb-git-d3907c926c3f3f851cce4193d04490758ccb4ddd.tar.gz
Merge rolltop.ignatz42.dyndns.org:/mnt/storeage/bksendmailfix/my50-bksendmailfix
into rolltop.ignatz42.dyndns.org:/mnt/storeage/bksendmailfix/my51-bksendmailfix BitKeeper/triggers/post-commit: SCCS merged
Diffstat (limited to 'BitKeeper/triggers')
-rwxr-xr-xBitKeeper/triggers/post-commit12
1 files changed, 9 insertions, 3 deletions
diff --git a/BitKeeper/triggers/post-commit b/BitKeeper/triggers/post-commit
index 7f8f8f1d4b8..f7b00625264 100755
--- a/BitKeeper/triggers/post-commit
+++ b/BitKeeper/triggers/post-commit
@@ -8,6 +8,12 @@ LIMIT=10000
VERSION="5.1"
BKROOT=`bk root`
+if [ -x /usr/sbin/sendmail ]; then
+ SENDMAIL=/usr/sbin/sendmail
+else
+ SENDMAIL=sendmail
+fi
+
if [ "$REAL_EMAIL" = "" ]
then
echo "Warning: you must set REAL_EMAIL in your profile"
@@ -61,7 +67,7 @@ EOF
bk cset -r+ -d
) > $BKROOT/BitKeeper/tmp/dev_public.txt
-bk sendmail -t < $BKROOT/BitKeeper/tmp/dev_public.txt
+$SENDMAIL -t < $BKROOT/BitKeeper/tmp/dev_public.txt
#++
# commits@ mail
@@ -87,7 +93,7 @@ EOF
bk cset -r+ -d
) | bk sed -e ${LIMIT}q > $BKROOT/BitKeeper/tmp/commits.txt
-bk sendmail -t < $BKROOT/BitKeeper/tmp/commits.txt
+$SENDMAIL -t < $BKROOT/BitKeeper/tmp/commits.txt
#++
# docs-commit@ mail
@@ -108,7 +114,7 @@ EOF
bk changes -v -r+
bk cset -r+ -d
) > $BKROOT/BitKeeper/tmp/docs.txt
- bk sendmail -t < $BKROOT/BitKeeper/tmp/docs.txt
+ $SENDMAIL -t < $BKROOT/BitKeeper/tmp/docs.txt
fi
else