Initial git import
[sxemacs] / contrib / 10sendlog
1 #!/bin/bash
2
3 if [ "$ARCH_REVISION" = "" ]; then
4     echo "$0 called without ARCH_REVISION set. Aborting."
5     exit 1
6 fi
7
8 email="sxemacs-patches@sxemacs.org"
9
10 echo "Sending mail to SXEmacs Patches <${email}>"
11 echo "  about ${ARCH_REVISION} changes."
12
13 (
14 echo "From: $(tla my-id)"
15 echo "Date: $(date --rfc-2822)"
16 echo "Subject: [Merge-Req] ${ARCH_REVISION}"
17 echo "To: SXEmacs Patches <${email}>"
18 echo
19 echo "Location: ${ARCH_ARCHIVE} <Gah!  My repo is at /dev/null>"
20 echo
21 tla cat-archive-log "${ARCH_ARCHIVE}/${ARCH_REVISION}"
22 echo
23 cd ${ARCH_TREE_ROOT}
24 dir="${ARCH_REVISION}.changeset-$$"
25 tla get-changeset "${ARCH_REVISION}" "${dir}"
26 tla show-changeset --diffs "${dir}"
27 rm -rf "${dir}"
28 ) | /usr/sbin/sendmail "${email}"
29
30 exit 0