autobuild: added a EDITOR script to mark successful autobuilds
[kai/samba-autobuild/.git] / script / commit_mark.sh
1 #!/bin/sh
2 # add a autobuild message to the HEAD commit
3
4 fullname=$(getent passwd $USER | cut -d: -f5| cut -d',' -f1)
5 cat <<EOF >> "$1"
6 Autobuild-User: $fullname <$USER@samba.org>
7 Autobuild-Date: $(date) on $(hostname)
8 EOF
9 exit 0