SVN: toys/stbr/cvslog.sh
glen
glen at pld-linux.org
Mon May 14 21:10:14 CEST 2007
Author: glen
Date: Mon May 14 21:10:09 2007
New Revision: 8526
Modified:
toys/stbr/cvslog.sh
Log:
- less pipes
Modified: toys/stbr/cvslog.sh
==============================================================================
--- toys/stbr/cvslog.sh (original)
+++ toys/stbr/cvslog.sh Mon May 14 21:10:09 2007
@@ -1,7 +1,7 @@
-#!/bin/bash
+#!/bin/sh
CVSROOT=":pserver:cvs at cvs.pld-linux.org:/cvsroot"
-VALID=`cat /home/users/stbr/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"
@@ -11,10 +11,10 @@
cd SPECS
#while [ "$3" ]; do
-cvs -d $CVSROOT log $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`
+cvs -d $CVSROOT log $3 | awk '/author/{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 |/usr/sbin/sendmail -t
+/usr/sbin/sendmail -t <<EOF
From: $FROM <$FROM at IRC-bot>
To: $SEND_TO@$HOST
Subject: build request
More information about the pld-cvs-commit
mailing list