Commit 2b8d142f authored by unknown's avatar unknown

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
parent 43da9989
...@@ -14,6 +14,12 @@ else ...@@ -14,6 +14,12 @@ else
FROM=$REAL_EMAIL FROM=$REAL_EMAIL
fi fi
if [ -x /usr/sbin/sendmail ]; then
SENDMAIL=/usr/sbin/sendmail
else
SENDMAIL=sendmail
fi
BK_STATUS=$BK_STATUS$BK_COMMIT BK_STATUS=$BK_STATUS$BK_COMMIT
if [ "$BK_STATUS" = OK ] if [ "$BK_STATUS" = OK ]
...@@ -58,7 +64,7 @@ $BH ...@@ -58,7 +64,7 @@ $BH
EOF EOF
bk changes -v -r+ bk changes -v -r+
bk cset -r+ -d bk cset -r+ -d
) | /usr/sbin/sendmail -t ) | $SENDMAIL -t
#++ #++
# commits@ mail # commits@ mail
...@@ -82,7 +88,7 @@ see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ...@@ -82,7 +88,7 @@ see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
EOF EOF
bk changes -v -r+ bk changes -v -r+
bk cset -r+ -d bk cset -r+ -d
) | head -n $LIMIT | /usr/sbin/sendmail -t ) | head -n $LIMIT | $SENDMAIL -t
#++ #++
# docs-commit@ mail # docs-commit@ mail
...@@ -102,7 +108,7 @@ Subject: bk commit - $VERSION tree (Manual) ($CHANGESET)$BS ...@@ -102,7 +108,7 @@ Subject: bk commit - $VERSION tree (Manual) ($CHANGESET)$BS
EOF EOF
bk changes -v -r+ bk changes -v -r+
bk cset -r+ -d bk cset -r+ -d
) | /usr/sbin/sendmail -t ) | $SENDMAIL -t
fi fi
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment