source: vendor/current/script/commit_mark.sh

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 524 bytes
Line 
1#!/bin/sh
2# add a autobuild message to the HEAD commit
3
4branch=$(git branch --contains HEAD | grep '^\* ' | sed -e 's/^\* //')
5
6if grep -q "^Autobuild\-User($branch): " "$1"; then
7 echo "Already marked as tested for $branch"
8 exit 0
9fi
10
11fullname=$(getent passwd $USER | cut -d: -f5| cut -d',' -f1)
12mailaddr=$(git config user.email)
13if test -z "$mailaddr" ; then
14 mailaddr="$USER@samba.org"
15fi
16cat <<EOF >> "$1"
17
18Autobuild-User($branch): $fullname <$mailaddr>
19Autobuild-Date($branch): $(date) on $(hostname)
20EOF
21exit 0
Note: See TracBrowser for help on using the repository browser.