#!/bin/sh # # CIA bot client script for BitKeeper repositories, delivering via email # -- Chris Larson # # Based on ciabot_svn.sh by Micah Dowty # # See http://cia.vc # for more information on what the CIA bot is and how it works. # ############# There are some parameters for this script that you can customize: # Project information # # NOTE: This shouldn't be a long description of your project. Ideally # it is a short identifier with no spaces, punctuation, or # unnecessary capitalization. This will be used in URLs related # to your project, as an internal identifier, and in IRC messages. # If you want a longer name shown for your project on the web # interface, please use the "title" metadata key rather than # putting that here. # project_name="openembedded" return_address="oe@handhelds.org" # System sendmail_command="/usr/sbin/sendmail -t" ############# Below this line you shouldn't have to change anything # Script arguments REV="$1" # The email address CIA lives at cia_address="cia@cia.vc" author=`echo $BK_USER | sed 's/\&/\&/g;s//\>/g'` module=`basename $BKD_ROOT | sed 's/\&/\&/g;s//\>/g'` log=`bk changes -r"$REV" -d":C:" | sed 's/\&/\&/g;s//\>/g'` tag=`bk changes -r"$REV" -d":TAG:" | sed 's/\&/\&/g;s//\>/g'` for file in `bk changes -n -v -r"$REV" -d"\\\$unless(:GFILE:=ChangeSet){:GFILE:}" | sort -u | sed 's/\&/\&/g;s//\>/g'`; do files="$files$file" done # Send an email with the final XML message (cat < BitKeeper CIA Bot client shell script 1.0 $project_name $module $tag $REV $author $files $log EOF ) | tee ~/sendmailcmd.$$ | $sendmail_command ### The End ###