20 lines
472 B
Bash
Executable File
20 lines
472 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ARCH=$(machine -a)
|
|
|
|
test -f config/rsync_output && grep tgz$ config/rsync_output >/dev/null
|
|
if [ $? -ne 0 ]
|
|
then
|
|
echo "No package, no mail."
|
|
exit 0
|
|
fi
|
|
|
|
set -x
|
|
{
|
|
printf "Hello. New package(s) to sign for ${ARCH}-stable.\n\n---\n"
|
|
grep tgz$ config/rsync_output
|
|
printf "---\n"
|
|
} | mail -s "${ARCH}-stable packages to sign" -r "${ARCH}-stable <solene@openbsd.org>" solene@openbsd.org sthen@openbsd.org pea@openbsd.org naddy@openbsd.org
|
|
|
|
rm config/rsync_output
|