diff options
author | iggy@rolltop.ignatz42.dyndns.org <> | 2006-09-14 11:05:27 -0400 |
---|---|---|
committer | iggy@rolltop.ignatz42.dyndns.org <> | 2006-09-14 11:05:27 -0400 |
commit | 1528d04feae53e37f971a1fef545a5d8385d76ac (patch) | |
tree | 7f1fce91ccc1883b2078bae391ffd00d9ecf8f48 /BitKeeper | |
parent | ebf4d199df237beca077442a5848148a86de62bd (diff) | |
parent | 7c0c57d6941b9ddc551e69b133273170b3b41b4b (diff) | |
download | mariadb-git-1528d04feae53e37f971a1fef545a5d8385d76ac.tar.gz |
Merge rolltop.ignatz42.dyndns.org:/mnt/storeage/bksendmailfix/my50-bksendmailfix
into rolltop.ignatz42.dyndns.org:/mnt/storeage/mysql-5.0-maint
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 37bdfc93a4a..981b55c66ec 100755 --- a/BitKeeper/triggers/post-commit +++ b/BitKeeper/triggers/post-commit @@ -8,6 +8,12 @@ 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 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 |