mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
22eb76c6d0
shfmt -f script/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
22 lines
517 B
Bash
Executable File
22 lines
517 B
Bash
Executable File
#!/bin/sh
|
|
# add a autobuild message to the HEAD commit
|
|
|
|
branch=$(git branch --contains HEAD | grep '^\* ' | sed -e 's/^\* //')
|
|
|
|
if grep -q "^Autobuild\-User($branch): " "$1"; then
|
|
echo "Already marked as tested for $branch"
|
|
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($branch): $fullname <$mailaddr>
|
|
Autobuild-Date($branch): $(date) on $(hostname)
|
|
EOF
|
|
exit 0
|