source: vendor/3.6.23/script/commit_mark.sh

Last change on this file was 740, checked in by Silvan Scherrer, 13 years ago

Samba Server: update vendor to 3.6.0

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