SVN: toys/stbr/cvslog.sh

shadzik shadzik at pld-linux.org
Fri May 18 05:08:04 CEST 2007


Author: shadzik
Date: Fri May 18 05:08:03 2007
New Revision: 8602

Modified:
   toys/stbr/cvslog.sh
Log:
- reduce your role to the minimum (just send mail)
- ver 0.5


Modified: toys/stbr/cvslog.sh
==============================================================================
--- toys/stbr/cvslog.sh	(original)
+++ toys/stbr/cvslog.sh	Fri May 18 05:08:03 2007
@@ -1,27 +1,15 @@
 #!/bin/bash
 # author: shadzik at pld-linux dot org
 # use with stbr.tcl at exactly the same version
-# Version: 0.4
+# Version: 0.5
 
-CVSROOT=":pserver:cvs at cvs.pld-linux.org:/cvsroot"
-VALID=`cat /home/users/stbr/ApHeX/scripts/requesters.txt`
-TEMP='/home/users/stbr/ApHeX/scripts/temp.txt'
 HOST="pld-linux.org"
 FROM="$1"
 BUILDER="$2"
 BRANCH="$4"
-TOWHO='/home/users/stbr/ApHeX/scripts/sent.txt'
+SEND_TO="$5"
 
-cd SPECS
-
-if [ "$BRANCH" == "HEAD" ]; then
-cvs -d $CVSROOT log $3 |grep author |awk '{print $5}' |tr -d ';' |awk '{ if( !seen[$0] ) print; seen[$0] = 1 }' > $TEMP
-else
-cvs -d $CVSROOT log -r$BRANCH $3 |grep author |awk '{print $5}' |tr -d ';' |awk '{ if( !seen[$0] ) print; seen[$0] = 1 }' > $TEMP
-fi
-SEND_TO=`cat $TEMP |egrep "$VALID" |head -1`
-#echo "Sending request to $SEND_TO for $3 from $FROM to $BUILDER"
-cat <<EOF |/usr/sbin/sendmail -t
+/usr/sbin/sendmail -t <<EOF
 From: $FROM <$FROM at IRC-bot>
 To: $SEND_TO@$HOST
 Subject: build request
@@ -29,5 +17,4 @@
 $FROM is requesting build for $3 (on branch $BRANCH).
 Please perform an $BUILDER.
 EOF
-echo $SEND_TO > $TOWHO
 sleep 1


More information about the pld-cvs-commit mailing list