diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-07-15 20:59:04 +0800 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-07-15 20:59:04 +0800 |
commit | 18541ac4f47287a57b6ac396df641908f6fe6f5d (patch) | |
tree | 8f3cb057c5db7902a5d95978a2f4b4ef7406b956 /CVSROOT | |
parent | be535ef9592ad51eba4ca6102d90228b5ff26744 (diff) | |
download | freebsd-ports-gnome-18541ac4f47287a57b6ac396df641908f6fe6f5d.tar.gz freebsd-ports-gnome-18541ac4f47287a57b6ac396df641908f6fe6f5d.tar.zst freebsd-ports-gnome-18541ac4f47287a57b6ac396df641908f6fe6f5d.zip |
Okay, I lied, I went and learned some more perl, and hacked the
Branch: detection logic into this. It's only 8 new lines, but due
to the learning curve it took me 3 hours to write them :-(.
Also fixed the $FreeBSD$ keyword to be $Id$ since it is turned off.
Next.. auto deletion of blank ``Reviewed, Submitted and Obtained" lines.
That should only take an hour more :-)
Diffstat (limited to 'CVSROOT')
-rwxr-xr-x | CVSROOT/log_accum.pl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/CVSROOT/log_accum.pl b/CVSROOT/log_accum.pl index 8a4d137f776f..428d43785856 100755 --- a/CVSROOT/log_accum.pl +++ b/CVSROOT/log_accum.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -w # -# $FreeBSD$ +# $Id$ # # Perl filter to handle the log messages from the checkin of files in # a directory. This script will group the lists of files by log @@ -39,6 +39,7 @@ $CHANGED_FILE = "/tmp/#cvs.files.changed"; $ADDED_FILE = "/tmp/#cvs.files.added"; $REMOVED_FILE = "/tmp/#cvs.files.removed"; $LOG_FILE = "/tmp/#cvs.files.log"; +$BRANCH_FILE = "/tmp/#cvs.files.branch"; $FILE_PREFIX = "#cvs.files"; $AVAIL_FILE = "$ENV{'CVSROOT'}/CVSROOT/avail"; @@ -318,6 +319,11 @@ if ($ARGV[0] =~ /New directory/) { # while (<STDIN>) { chop; # Drop the newline + if (/^Revision\/Branch:/) { + s,^Revision/Branch:,,; + push (@branch_lines, split); + next; + } if (/^Modified Files/) { $state = $STATE_CHANGED; next; } if (/^Added Files/) { $state = $STATE_ADDED; next; } if (/^Removed Files/) { $state = $STATE_REMOVED; next; } @@ -363,6 +369,7 @@ for ($i = 0; ; $i++) { # Spit out the information gathered in this pass. # &write_logfile("$LOG_FILE.$i.$id", @log_lines); +&append_to_file("$BRANCH_FILE.$i.$id", $dir, @branch_lines); &append_to_file("$ADDED_FILE.$i.$id", $dir, @added_files); &append_to_file("$CHANGED_FILE.$i.$id", $dir, @changed_files); &append_to_file("$REMOVED_FILE.$i.$id", $dir, @removed_files); @@ -395,6 +402,7 @@ push(@text, $header); push(@text, ""); for ($i = 0; ; $i++) { last if (! -e "$LOG_FILE.$i.$id"); + push(@text, &read_file("$BRANCH_FILE.$i.$id", "Branch:")); push(@text, &read_file("$CHANGED_FILE.$i.$id", "Modified:")); push(@text, &read_file("$ADDED_FILE.$i.$id", "Added:")); push(@text, &read_file("$REMOVED_FILE.$i.$id", "Removed:")); |