SVN: toys/stbr/cvslog.sh

shadzik shadzik at pld-linux.org
Sun May 13 05:23:25 CEST 2007


Author: shadzik
Date: Sun May 13 05:23:25 2007
New Revision: 8511

Modified:
   toys/stbr/cvslog.sh
Log:
- some standarization


Modified: toys/stbr/cvslog.sh
==============================================================================
--- toys/stbr/cvslog.sh	(original)
+++ toys/stbr/cvslog.sh	Sun May 13 05:23:25 2007
@@ -1,17 +1,16 @@
 #!/bin/bash
-# use with stbr.tcl
-# auth: shadzik at pld-linux.org
 
 CVSROOT=":pserver:cvs at cvs.pld-linux.org:/cvsroot"
-VALID=`cat ~/ApHeX/scripts/requesters.txt`
+VALID=`cat /home/users/stbr/ApHeX/scripts/requesters.txt`
+TEMP='/home/users/stbr/ApHeX/scripts/temp.txt'
 HOST="pld-linux.org"
 FROM="$1"
 BRANCH="$2"
 
 while [ "$3" ]; do
-cvs -d $CVSROOT log SPECS/$3 |grep author |awk '{print $5}' |tr -d ';' |awk '{ if( !seen[$0] ) print; seen[$0] = 1 }' > temp.txt
-SEND_TO=`cat temp.txt |egrep "$VALID" |head -1`
-#echo "Sending request to $SEND_TO for $3 from $FROM"
+cvs -d $CVSROOT log SPECS/$3 |grep author |awk '{print $5}' |tr -d ';' |awk '{ if( !seen[$0] ) print; seen[$0] = 1 }' > $TEMP
+SEND_TO=`cat $TEMP |egrep "$VALID" |head -1`
+#echo "Sending request to $SEND_TO for $3 from $FROM to $BRANCH"
 cat <<EOF |sendmail -t
 From: $FROM <$FROM at IRC-bot>
 To: $SEND_TO@$HOST
@@ -19,7 +18,7 @@
 
 $FROM is requesting build for $3 to $BRANCH
 EOF
-#echo $SEND_TO > sent.txt
+#echo $SEND_TO@$HOST >> sent.txt
 sleep 1
 shift
 done


More information about the pld-cvs-commit mailing list