Commit 3712d526 authored by unknown's avatar unknown

post-commit fixed up post commit, let's see if it works


BitKeeper/triggers/post-commit:
  fixed up post commit, let's see if it works
parent 80227183
#!/bin/sh
shift
REPO=`bk gethost`:`pwd`
TO=dev@mysql.com
if [ -f BitKeeper/etc/pushed -a "$BK_COMMIT" = OK ]
then (
echo ${USER}@"$@"
echo ""
bk changes - < BitKeeper/etc/pushed
) | mail -s "Outgoing from $REPO" $TO
else
echo ${USER}@"$@"| mail -s "Outgoing from $REPO = $BK_OUTGOING" $TO
fi
shift
TO=dev@mysql.com
FROM=$USER@mysql.com
if [ "$BK_COMMIT" = OK ]
then
echo "Commit successful, notifying developers at $TO"
(
cat <<EOF
From: $FROM
To: $TO
Subject: bk commit
EOF
bk changes -v -r+
) | /usr/sbin/sendmail -t
else
echo "commit failed because '$BK_COMMIT', sorry life is hard..."
fi
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