diff options
Diffstat (limited to 'tinderbox/antimatter-scheduler')
-rwxr-xr-x | tinderbox/antimatter-scheduler | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tinderbox/antimatter-scheduler b/tinderbox/antimatter-scheduler new file mode 100755 index 0000000..690ac5a --- /dev/null +++ b/tinderbox/antimatter-scheduler @@ -0,0 +1,23 @@ +#!/bin/bash + +unset PORTAGE +unset PORTAGE_TMPDIR + +set -e + +if [ "${#}" != "3" ]; then + echo "Invalid arguments." >&2 + exit 1 +fi + +CHROOT_PATH="${1}" +ARCH_NAME="${2}" +CHROOT_PREFIX="${3}" + +( + ${CHROOT_PREFIX} chroot "${CHROOT_PATH}" \ + /kogaion/bin/antimatter-digest +) | mail -a "MIME-Version: 1.0" \ + -a "Content-Type: text/html" \ + -s "AntiMatter tracker of $(date +%Y-%m-%d) for ${ARCH_NAME}" \ + entropy@rogentos.ro |