mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
5d5ae099d1
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
15 lines
320 B
Bash
Executable File
15 lines
320 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)
|
|
cat <<EOF >> "$1"
|
|
Autobuild-User: $fullname <$USER@samba.org>
|
|
Autobuild-Date: $(date) on $(hostname)
|
|
EOF
|
|
exit 0
|