summaryrefslogtreecommitdiff
path: root/BitKeeper
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-01-16 03:47:38 +0000
committerChris Larson <clarson@kergoth.com>2004-01-16 03:47:38 +0000
commitc6d4483851a1ef3ffc88daaf32dd681a3f7a2430 (patch)
treeb3a27f82dca505a9687b3bff11bdfa303239721b /BitKeeper
parent28ffcf649498d5f684688d3c89650db6435a84ff (diff)
Simplify the CIA notification script.
BKrev: 40075edaoTtmLWnm7LEDVwfNQ0P-tA
Diffstat (limited to 'BitKeeper')
-rw-r--r--BitKeeper/triggers/ciabot_bk.sh24
1 files changed, 5 insertions, 19 deletions
diff --git a/BitKeeper/triggers/ciabot_bk.sh b/BitKeeper/triggers/ciabot_bk.sh
index a75be349ae..9140147306 100644
--- a/BitKeeper/triggers/ciabot_bk.sh
+++ b/BitKeeper/triggers/ciabot_bk.sh
@@ -29,7 +29,9 @@ author=`echo $BK_USER | sed 's/\&/\&amp;/g;s/</\&lt;/g;s/>/\&gt;/g'`
module=`basename $BKD_ROOT | sed 's/\&/\&amp;/g;s/</\&lt;/g;s/>/\&gt;/g'`
log=`bk changes -r"$REV" -d":C:" | 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'`
-files=`bk changes -n -v -r"$REV" -d"\\\$unless(:GFILE:=ChangeSet){:GFILE:}" | sort -u | 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
@@ -46,29 +48,13 @@ Subject: DeliverXML
<source>
<project>$project_name</project>
<module>$module</module>
-EOF
-
-if test -n "$tag"; then
- echo " <branch>$tag</branch>"
-fi
-
-cat <<EOF
+ <branch>$tag</branch>
</source>
<body>
<commit>
<revision>$REV</revision>
<author>$author</author>
-EOF
-
-if test -n "$files"; then
- echo " <files>"
- for f in $files; do
- echo " <file>$f</file>"
- done
- echo " </files>"
-fi
-
-cat <<EOF
+ <files>$files</files>
<log>$log</log>
</commit>
</body>