#!/bin/sh# add a autobuild message to the HEAD commitifgrep-q'^Autobuild.User'"$1";thenecho"Already marked as tested"exit0fi
fullname=$(getent passwd $USER | cut -d: -f5| cut -d',' -f1)cat<<EOF >> "$1"Autobuild-User:$fullname<$USER@samba.org>Autobuild-Date:$(date)on$(hostname)EOFexit0