mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
c4c230bd0f
Signed-off-by: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Nov 10 23:56:37 UTC 2010 on sn-devel-104
20 lines
410 B
Bash
Executable File
20 lines
410 B
Bash
Executable File
#!/bin/sh
|
|
# add a autobuild message to the HEAD commit
|
|
|
|
if grep -q '^Autobuild.User' "$1"; then
|
|
echo "Already marked as tested"
|
|
exit 0
|
|
fi
|
|
|
|
fullname=$(getent passwd $USER | cut -d: -f5| cut -d',' -f1)
|
|
mailaddr=$(git config user.email)
|
|
if test -z "$mailaddr" ; then
|
|
mailaddr="$USER@samba.org"
|
|
fi
|
|
cat <<EOF >> "$1"
|
|
|
|
Autobuild-User: $fullname <$mailaddr>
|
|
Autobuild-Date: $(date) on $(hostname)
|
|
EOF
|
|
exit 0
|