summaryrefslogtreecommitdiff
path: root/tinderbox/antimatter-scheduler
blob: 690ac5a34f19db2a55c68751ad12787413db8036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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