#!/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.navi.cx # 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 [ -z "$project_name" ] && project_name="openembedded" [ -z "$return_address" ] && 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@navi.cx" author=`bk changes -r"$REV" -d":P:" | sed 's/\&/\&/g;s//\>/g'` module=`basename $BKD_ROOT | 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.1 $project_name $module $tag $REV $author $files EOF echo " " bk changes -r"$REV" -d'$if(:C:){$each(:C:){:C: \\n}}' | sed -e 's/\&/\&\;/g;s//\>\;/g;' echo " " cat < EOF ) | $sendmail_command