s4 dns: Move dns_transaction_udp to other helper functions
[Samba/gebeck_regimport.git] / script / commit_mark.sh
blob8495808cc64b6eee459642afedf55111aea5a9f6
1 #!/bin/sh
2 # add a autobuild message to the HEAD commit
4 if grep -q '^Autobuild.User' "$1"; then
5 echo "Already marked as tested"
6 exit 0
7 fi
9 fullname=$(getent passwd $USER | cut -d: -f5| cut -d',' -f1)
10 mailaddr=$(git config user.email)
11 if test -z "$mailaddr" ; then
12 mailaddr="$USER@samba.org"
14 cat <<EOF >> "$1"
16 Autobuild-User: $fullname <$mailaddr>
17 Autobuild-Date: $(date) on $(hostname)
18 EOF
19 exit 0