SVN: toys/stbr/cvslog.sh

shadzik shadzik at pld-linux.org
Fri May 18 09:50:07 CEST 2007


Author: shadzik
Date: Fri May 18 09:50:05 2007
New Revision: 8609

Modified:
   toys/stbr/cvslog.sh
Log:
- as arekm requested:
- be more friendly
- add head info form spec
- propose make-request.sh syntax


Modified: toys/stbr/cvslog.sh
==============================================================================
--- toys/stbr/cvslog.sh	(original)
+++ toys/stbr/cvslog.sh	Fri May 18 09:50:05 2007
@@ -3,17 +3,49 @@
 # use with stbr.tcl at exactly the same version
 # Version: 0.5
 
+CVSROOT=":pserver:cvs at cvs.pld-linux.org/cvsroot/"
 HOST="pld-linux.org"
 FROM="$1"
 BUILDER="$2"
 BRANCH="$4"
 SEND_TO="$5"
 
+option=""
+send_branch=":$BRANCH"
+
+if [ "$BUILDER" == "test-build" ]; then
+	option="-t"
+fi
+
+rm -f SPECS/$3 >/dev/null 2>&1
+
+if [ "$BRANCH" == "HEAD" ]; then
+	send_branch=""
+	cvs -d $CVSROOT get SPECS/$3 >/dev/null 2>&1
+else
+	cvs -d $CVSROOT get -r $BRANCH SPECS/$3 >/dev/null 2>&1
+fi
+
+ADD_INFO=`grep -B 50 -A 2 Name: SPECS/$3`
+
 /usr/sbin/sendmail -t <<EOF
 From: $FROM <$FROM at IRC-bot>
 To: $SEND_TO@$HOST
 Subject: build request
 
+Hello,
+
 $FROM is requesting build for $3 (on branch $BRANCH).
 Please perform an $BUILDER.
+
+I suppose you're lazy so I provide you some commands you could just copy & paste:
+./make-request.sh $option $3$send_branch
+
+Additional spec inforamtion:
+$ADD_INFO
+
+Thank you.
+
+Yours truly,
+STBR Requester
 EOF


More information about the pld-cvs-commit mailing list