diff options
author | Chris Larson <clarson@kergoth.com> | 2004-01-16 03:47:38 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-01-16 03:47:38 +0000 |
commit | c6d4483851a1ef3ffc88daaf32dd681a3f7a2430 (patch) | |
tree | b3a27f82dca505a9687b3bff11bdfa303239721b | |
parent | 28ffcf649498d5f684688d3c89650db6435a84ff (diff) |
Simplify the CIA notification script.
BKrev: 40075edaoTtmLWnm7LEDVwfNQ0P-tA
-rw-r--r-- | BitKeeper/triggers/ciabot_bk.sh | 24 |
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/\&/\&/g;s/</\</g;s/>/\>/g'` module=`basename $BKD_ROOT | sed 's/\&/\&/g;s/</\</g;s/>/\>/g'` log=`bk changes -r"$REV" -d":C:" | sed 's/\&/\&/g;s/</\</g;s/>/\>/g'` tag=`bk changes -r"$REV" -d":TAG:" | sed 's/\&/\&/g;s/</\</g;s/>/\>/g'` -files=`bk changes -n -v -r"$REV" -d"\\\$unless(:GFILE:=ChangeSet){:GFILE:}" | sort -u | sed 's/\&/\&/g;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;s/>/\>/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> |