summaryrefslogtreecommitdiff
path: root/BitKeeper/triggers/ciabot_bk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'BitKeeper/triggers/ciabot_bk.sh')
-rw-r--r--BitKeeper/triggers/ciabot_bk.sh66
1 files changed, 0 insertions, 66 deletions
diff --git a/BitKeeper/triggers/ciabot_bk.sh b/BitKeeper/triggers/ciabot_bk.sh
deleted file mode 100644
index b12890574b..0000000000
--- a/BitKeeper/triggers/ciabot_bk.sh
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-#
-# CIA bot client script for BitKeeper repositories, delivering via email
-# -- Chris Larson <kergoth@handhelds.org>
-#
-# Based on ciabot_svn.sh by Micah Dowty <micah@picogui.org>
-#
-# 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/\&/\&amp;/g;s/</\&lt;/g;s/>/\&gt;/g'`
-module=`basename $BKD_ROOT | sed 's/\&/\&amp;/g;s/</\&lt;/g;s/>/\&gt;/g'`
-tag=`bk changes -r"$REV" -d":TAG:" | sed 's/\&/\&amp;/g;s/</\&lt;/g;s/>/\&gt;/g'`
-for file in `bk changes -n -v -r"$REV" -d"\\\$unless(:GFILE:=ChangeSet){:GFILE:}" | sort -u | sed 's/\&/\&amp;/g;s/</\&lt;/g;s/>/\&gt;/g'`; do
- files="$files<file>$file</file>"
-done
-
-# Send an email with the final XML message
-(cat <<EOF
-From: $return_address
-To: $cia_address
-Content-type: text/xml
-Subject: DeliverXML
-
-<message>
- <generator>
- <name>BitKeeper CIA Bot client shell script</name>
- <version>1.1</version>
- </generator>
- <source>
- <project>$project_name</project>
- <module>$module</module>
- <branch>$tag</branch>
- </source>
- <body>
- <commit>
- <revision>$REV</revision>
- <author>$author</author>
- <files>$files</files>
-EOF
-echo " <log>"
-bk changes -r"$REV" -d'$if(:C:){$each(:C:){:C: \\n}}' | sed -e 's/\&/\&amp\;/g;s/</\&lt\;/g;s/>/\&gt\;/g;'
-echo " </log>"
-cat <<EOF
- </commit>
- </body>
-</message>
-EOF
-) | $sendmail_command