summaryrefslogtreecommitdiffstats
path: root/script/commit_mark.sh
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-25 15:30:13 -0700
committerAndrew Tridgell <tridge@samba.org>2010-09-26 01:21:49 +0000
commit91b62a274411477f67f50f0f653dd17bf1e65c1d (patch)
tree0e13bbb684d149ba18cb3aaca317c6b8de62534d /script/commit_mark.sh
parentf7fb272e953b743ca9830618af9b1c290701ffec (diff)
downloadsamba-91b62a274411477f67f50f0f653dd17bf1e65c1d.tar.gz
samba-91b62a274411477f67f50f0f653dd17bf1e65c1d.tar.xz
samba-91b62a274411477f67f50f0f653dd17bf1e65c1d.zip
autobuild: added a EDITOR script to mark successful autobuilds
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'script/commit_mark.sh')
-rwxr-xr-xscript/commit_mark.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/script/commit_mark.sh b/script/commit_mark.sh
new file mode 100755
index 00000000000..38328c48271
--- /dev/null
+++ b/script/commit_mark.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# add a autobuild message to the HEAD commit
+
+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