*** empty log message ***
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
#!/bin/bash
|
||||
module=`echo $1 | cut -d/ -f1`
|
||||
message=`cat`
|
||||
uname=`id -un`
|
||||
lineno=`echo "$message" | grep -n "Log Message:" | awk -F: ' { print $1 } '`
|
||||
message=`echo "$message" | sed "1,${lineno}d"`
|
||||
|
||||
projectname="zsnes"
|
||||
tmpfile="/tmp/$RANDOM-$projectname"
|
||||
message=`echo "$message" | head -n 5`
|
||||
#message=`echo $message | tr '\n\r' ' '`
|
||||
|
||||
cat <<EOF >$tmpfile
|
||||
From: pagefault@users.sourceforge.net
|
||||
To: commits@picogui.org
|
||||
Content-Type: text/plain;
|
||||
Subject: Announce $projectname
|
||||
|
||||
commit to module {green}$module{normal} by {orange}$uname{normal}: $message
|
||||
EOF
|
||||
|
||||
|
||||
if [ -e /tmp/lastlog-$projectname ]; then
|
||||
if ! diff /tmp/lastlog-$projectname $tmpfile &>/dev/null; then
|
||||
# there are differences, so this is a different commit
|
||||
cat $tmpfile | /usr/sbin/sendmail -t
|
||||
mv $tmpfile /tmp/lastlog-$projectname
|
||||
else
|
||||
# it's just cvs spamming us from another directory
|
||||
rm $tmpfile
|
||||
fi
|
||||
else
|
||||
cat $tmpfile | /usr/sbin/sendmail -t
|
||||
mv $tmpfile /tmp/lastlog-$projectname
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user