SVN: toys/stbr/cvslog.sh
shadzik
shadzik at pld-linux.org
Tue May 15 21:36:51 CEST 2007
Author: shadzik
Date: Tue May 15 21:36:51 2007
New Revision: 8551
Modified:
toys/stbr/cvslog.sh
Log:
- don't use -r option if branch is HEAD (it breaks usability in some specs ex. FHS.spec)
- clean up
Modified: toys/stbr/cvslog.sh
==============================================================================
--- toys/stbr/cvslog.sh (original)
+++ toys/stbr/cvslog.sh Tue May 15 21:36:51 2007
@@ -14,8 +14,11 @@
cd SPECS
-#while [ "$3" ]; do
+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
@@ -27,5 +30,3 @@
EOF
echo $SEND_TO > $TOWHO
sleep 1
-#shift
-#done
More information about the pld-cvs-commit
mailing list