summaryrefslogtreecommitdiff
path: root/script/commit_mark.sh
blob: bb1e9428a04c56f5644d75d2300426c6a4db5bea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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