From: <gnu...@li...> - 2003-06-28 19:54:49
|
GNUpdate CVS committal Author : chipx86 Module : CVSROOT Path : / Modified Files: cia.sh Log Message: Oops, bad script, bad! =================================================================== RCS file: /cvsroot/gnupdate/CVSROOT/cia.sh,v retrieving revision 1.20 retrieving revision 1.21 diff -u -3 -r1.20 -r1.21 --- cia.sh 28 Jun 2003 19:53:18 -0000 1.20 +++ cia.sh 28 Jun 2003 19:54:48 -0000 1.21 @@ -44,6 +44,7 @@ if [ "$branch" != "" ]; then branch=" {yellow}${branch}{normal}" +fi if $stripnewlines; then message=`echo -n "$message" | tr '\n\r' ' '` |
From: <gnu...@li...> - 2003-06-28 19:57:21
|
GNUpdate CVS committal Author : chipx86 Module : CVSROOT Path : / Modified Files: cia.sh loginfo Log Message: Had a line in the wrong place in the CIA script. =================================================================== RCS file: /cvsroot/gnupdate/CVSROOT/cia.sh,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- cia.sh 28 Jun 2003 19:54:48 -0000 1.21 +++ cia.sh 28 Jun 2003 19:57:20 -0000 1.22 @@ -30,10 +30,10 @@ maxlines=6 message=`cat` uname=`id -un` +branch=`echo "$message" | grep -n "Tag:" | awk -F': ' ' { print $3 } ' | head -n 1` lineno=`echo "$message" | grep -n "Log Message:" | awk -F: ' { print $1 } '` message=`echo "$message" | sed "1,${lineno}d"` newline=`echo` -branch=`echo "$message" | grep -n "Tag:" | awk -F': ' ' { print $3 } ' | head -n 1` if [ "$message" != "`echo \"$message\" | head -n $maxlines`" ]; then # The following line appears to be the only way to insert a newline at =================================================================== RCS file: /cvsroot/gnupdate/CVSROOT/loginfo,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- loginfo 3 Jun 2003 02:55:40 -0000 1.21 +++ loginfo 28 Jun 2003 19:57:20 -0000 1.22 @@ -29,4 +29,4 @@ #DEFAULT $CVSROOT/CVSROOT/syncmail %{sVv} gnu...@li... DEFAULT /usr/bin/perl $CVSROOT/CVSROOT/commit.pl %{sVv} -ALL /bin/bash $CVSROOT/CVSROOT/cia.sh %{} +ALL /bin/bash $CVSROOT/CVSROOT/cia.sh %{s} |
From: <gnu...@li...> - 2003-06-28 20:26:10
|
GNUpdate CVS committal Author : chipx86 Module : CVSROOT Path : / Modified Files: cia.sh Log Message: Only try to display the tag if there is one :) =================================================================== RCS file: /cvsroot/gnupdate/CVSROOT/cia.sh,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- cia.sh 28 Jun 2003 19:57:20 -0000 1.22 +++ cia.sh 28 Jun 2003 20:25:39 -0000 1.23 @@ -30,7 +30,13 @@ maxlines=6 message=`cat` uname=`id -un` -branch=`echo "$message" | grep -n "Tag:" | awk -F': ' ' { print $3 } ' | head -n 1` + +if [ "`echo "$message" | grep "Tag:"`" != "" ]; then + branch=`echo "$message" | grep -n "Tag:" | awk -F': ' ' { print $3 } ' | head -n 1` +else + branch= +fi + lineno=`echo "$message" | grep -n "Log Message:" | awk -F: ' { print $1 } '` message=`echo "$message" | sed "1,${lineno}d"` newline=`echo` |
From: <gnu...@li...> - 2003-06-28 20:27:46
|
GNUpdate CVS committal Author : chipx86 Module : CVSROOT Path : / Modified Files: loginfo Log Message: Okay, now my commits should be going through without ugly filenames showing. =================================================================== RCS file: /cvsroot/gnupdate/CVSROOT/loginfo,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- loginfo 28 Jun 2003 19:57:20 -0000 1.22 +++ loginfo 28 Jun 2003 20:27:45 -0000 1.23 @@ -29,4 +29,4 @@ #DEFAULT $CVSROOT/CVSROOT/syncmail %{sVv} gnu...@li... DEFAULT /usr/bin/perl $CVSROOT/CVSROOT/commit.pl %{sVv} -ALL /bin/bash $CVSROOT/CVSROOT/cia.sh %{s} +ALL /bin/bash $CVSROOT/CVSROOT/cia.sh %{} |
From: <gnu...@li...> - 2003-07-02 21:50:51
|
GNUpdate CVS committal Author : chipx86 Module : CVSROOT Path : / Modified Files: commit.pl Log Message: Testing a new cvs commit e-mail script. =================================================================== RCS file: /cvsroot/gnupdate/CVSROOT/commit.pl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- commit.pl 12 Jan 2002 02:48:20 -0000 1.2 +++ commit.pl 2 Jul 2003 21:45:49 -0000 1.3 @@ -23,7 +23,8 @@ # Here come the bits you'll want to twiddle configuration-wise: -$SENDMAIL = "/usr/sbin/sendmail"; +#$SENDMAIL = "/usr/sbin/sendmail"; +$MAILCMD = "/bin/mail"; $MAILFROM = "GNUpdate CVS <gnupdate-commits\@lists.sourceforge.net>"; $MAILREPLYTO = "gnupdate-devel\@lists.sourceforge.net"; $MAILTO = "gnupdate-commits\@lists.sourceforge.net"; @@ -67,10 +68,10 @@ # print "E-mailing the commit to " . $MAILTO . "... "; -open(MAIL, "| $SENDMAIL -t"); -print MAIL "To: $MAILTO\n"; +open(MAIL, "| $MAILCMD -s \"$modulename $login\" \"$MAILTO\" 2>&1 > /dev/null"); +#print MAIL "To: $MAILTO\n"; print MAIL "Reply-To: $MAILREPLYTO\n"; -print MAIL "Subject: $modulename $login\n"; +#print MAIL "Subject: $modulename $login\n"; print MAIL "From: $MAILFROM\n"; #print MAIL "From: $login\@sourceforge.net\n"; print MAIL "\n"; |
From: <gnu...@li...> - 2003-07-02 22:10:23
|
Reply-To: gnu...@li... From: GNUpdate CVS <gnu...@li...> GNUpdate CVS committal Author : chipx86 Module : CVSROOT Path : / Modified Files: commit.pl Log Message: Removed the headers that were ending up in the commit e-mail. =================================================================== RCS file: /cvsroot/gnupdate/CVSROOT/commit.pl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- commit.pl 2 Jul 2003 21:45:49 -0000 1.3 +++ commit.pl 2 Jul 2003 22:09:53 -0000 1.4 @@ -69,14 +69,7 @@ # print "E-mailing the commit to " . $MAILTO . "... "; open(MAIL, "| $MAILCMD -s \"$modulename $login\" \"$MAILTO\" 2>&1 > /dev/null"); -#print MAIL "To: $MAILTO\n"; -print MAIL "Reply-To: $MAILREPLYTO\n"; -#print MAIL "Subject: $modulename $login\n"; -print MAIL "From: $MAILFROM\n"; -#print MAIL "From: $login\@sourceforge.net\n"; -print MAIL "\n"; - -print MAIL "GNUpdate CVS committal\n\n"; +print MAIL "GNUpdate CVS commit\n\n"; print MAIL "Author : $login\n"; print MAIL "Module : $modulename\n"; print MAIL "Path : $path"; |
From: <gnu...@li...> - 2004-01-05 08:03:38
|
GNUpdate CVS commit Author : chipx86 Module : CVSROOT Path : / Modified Files: checkoutlist loginfo Added Files: ciabot.pl Log Message: Attempting to use pasky's new ciabot.pl. Let's see how well this works. =================================================================== RCS file: /cvsroot/gnupdate/CVSROOT/checkoutlist,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- checkoutlist 1 Jun 2003 17:14:48 -0000 1.6 +++ checkoutlist 5 Jan 2004 08:03:03 -0000 1.7 @@ -13,3 +13,4 @@ # comment lines begin with '#' commit.pl cannot get commit.pl cia.sh cannot get cia.sh +ciabot.pl cannot get ciabot.pl =================================================================== RCS file: /cvsroot/gnupdate/CVSROOT/loginfo,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- loginfo 28 Jun 2003 20:27:45 -0000 1.23 +++ loginfo 5 Jan 2004 08:03:03 -0000 1.24 @@ -29,4 +29,5 @@ #DEFAULT $CVSROOT/CVSROOT/syncmail %{sVv} gnu...@li... DEFAULT /usr/bin/perl $CVSROOT/CVSROOT/commit.pl %{sVv} -ALL /bin/bash $CVSROOT/CVSROOT/cia.sh %{} +ALL /usr/bin/perl $CVSROOT/CVSROOT/ciabot.sh %s $USER +#ALL /bin/bash $CVSROOT/CVSROOT/cia.sh %{} |
From: <gnu...@li...> - 2004-01-05 08:05:21
|
GNUpdate CVS commit Author : chipx86 Module : CVSROOT Path : / Modified Files: loginfo Log Message: Turns out I don't know how to type. =================================================================== RCS file: /cvsroot/gnupdate/CVSROOT/loginfo,v retrieving revision 1.24 retrieving revision 1.25 diff -u -3 -r1.24 -r1.25 --- loginfo 5 Jan 2004 08:03:03 -0000 1.24 +++ loginfo 5 Jan 2004 08:05:20 -0000 1.25 @@ -29,5 +29,5 @@ #DEFAULT $CVSROOT/CVSROOT/syncmail %{sVv} gnu...@li... DEFAULT /usr/bin/perl $CVSROOT/CVSROOT/commit.pl %{sVv} -ALL /usr/bin/perl $CVSROOT/CVSROOT/ciabot.sh %s $USER +ALL /usr/bin/perl $CVSROOT/CVSROOT/ciabot.pl %s $USER #ALL /bin/bash $CVSROOT/CVSROOT/cia.sh %{} |
From: <gnu...@li...> - 2004-01-05 08:07:14
|
GNUpdate CVS commit Author : chipx86 Module : CVSROOT Path : / Modified Files: ciabot.pl Log Message: Fixing sendmail path. =================================================================== RCS file: /cvsroot/gnupdate/CVSROOT/ciabot.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- ciabot.pl 5 Jan 2004 08:03:03 -0000 1.1 +++ ciabot.pl 5 Jan 2004 08:07:13 -0000 1.2 @@ -27,7 +27,7 @@ # If it does not work, try to disable $xml_rpc in the configuration section # below. # -# $Id: ciabot.pl,v 1.1 2004/01/05 08:03:03 chipx86 Exp $ +# $Id: ciabot.pl,v 1.2 2004/01/05 08:07:13 chipx86 Exp $ use strict; use vars qw ($project $from_email $dest_email $rpc_uri @sendmail $sync_delay @@ -53,7 +53,8 @@ # Path to your sendmail binary. If you have it at a different place (and # outside of $PATH), add your location at the start of this list. By all means # keep the trailing empty string in the array. -@sendmail = ('sendmail', '/usr/lib/sendmail', '/usr/sbin/sendmail', ''); +#@sendmail = ('sendmail', '/usr/lib/sendmail', '/usr/sbin/sendmail', ''); +@sendmail = ('/usr/sbin/sendmail', ''); # Number of seconds to wait for possible concurrent instances. CVS calls up # this script for each involved directory separately and this is the sync @@ -210,7 +211,7 @@ ### Compose the mail message -my ($VERSION) = '$Revision: 1.1 $' =~ / (\d+\.\d+) /; +my ($VERSION) = '$Revision: 1.2 $' =~ / (\d+\.\d+) /; my $ts = time; $message = <<EM |
From: <gnu...@li...> - 2004-01-05 08:17:32
|
GNUpdate CVS commit Author : chipx86 Module : CVSROOT Path : / Modified Files: checkoutlist loginfo Removed Files: cia.sh Log Message: Remove the old CIA script. Kudos to pasky. =================================================================== RCS file: /cvsroot/gnupdate/CVSROOT/checkoutlist,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- checkoutlist 5 Jan 2004 08:03:03 -0000 1.7 +++ checkoutlist 5 Jan 2004 08:17:01 -0000 1.8 @@ -12,5 +12,4 @@ # # comment lines begin with '#' commit.pl cannot get commit.pl -cia.sh cannot get cia.sh ciabot.pl cannot get ciabot.pl =================================================================== RCS file: /cvsroot/gnupdate/CVSROOT/loginfo,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- loginfo 5 Jan 2004 08:05:20 -0000 1.25 +++ loginfo 5 Jan 2004 08:17:01 -0000 1.26 @@ -30,4 +30,3 @@ DEFAULT /usr/bin/perl $CVSROOT/CVSROOT/commit.pl %{sVv} ALL /usr/bin/perl $CVSROOT/CVSROOT/ciabot.pl %s $USER -#ALL /bin/bash $CVSROOT/CVSROOT/cia.sh %{} |