2a38ee711e
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/systemd.git#0257583091a9b13d4ca7012ee3632f67af009b85
37 lines
768 B
Bash
Executable File
37 lines
768 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
[ -z "$server" -o -z "login" ] && { echo '$server and $login need to be set'; exit 1 }
|
|
|
|
header=
|
|
from=systemd-maint@fedoraproject.org
|
|
time='2 years ago'
|
|
# time='1 day ago'
|
|
port=587
|
|
|
|
for user in "$@"; do
|
|
echo "checking $user…"
|
|
t=$(git shortlog --all --author $user --since "@{$time}" | wc -l)
|
|
if [ $t != 0 ]; then
|
|
echo "$t commits in the last two years, OK"
|
|
continue
|
|
fi
|
|
|
|
if [ -z "$header" ]; then
|
|
echo '$USER$;$EMAIL$' >.mail.list
|
|
header=done
|
|
fi
|
|
|
|
echo "$user;$user@fedoraproject.org" >>.mail.list
|
|
done
|
|
|
|
[ -z "$header" ] && exit 0
|
|
|
|
echo "Sending mails…"
|
|
set -x
|
|
massmail -F $from \
|
|
-C $from \
|
|
-S 'write access to the fedora systemd package' \
|
|
-z $server -u $login -P $port \
|
|
.mail.list <owner-check.template
|