File:  [LON-CAPA] / loncom / build / cvsfilter.pl
Revision 1.2: download - view: text, annotated - select for diffs
Tue Feb 27 17:09:17 2001 UTC (23 years, 2 months ago) by harris41
Branches: MAIN
CVS tags: version_0_6_2, version_0_6, version_0_5_1, version_0_5, version_0_4, stable_2002_spring, stable_2002_july, stable_2002_april, stable_2001_fall, STABLE, HEAD, Before_rewrite
cvsreport now works (been tested) and is part of the install.lon-capa.org
pages -Scott

    1: #!/usr/bin/perl
    2: 
    3: # Scott Harrison
    4: # 02/27/2001
    5: 
    6: # Accepts input from commands like:
    7: #    cvs log -N -d '2001-02-28>2001-02-19' 
    8: 
    9: $/="=" x 77 . "\n";
   10: 
   11: my $count=1;
   12: while(<>) {
   13:     if (/\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-/) {
   14: 	s/\nbranch:.*//;
   15: 	s/\nlocks:.*//;
   16: 	s/\naccess list:.*//;
   17: 	s/\nsymbolic names:.*//;
   18: 	s/\nkeyword substitution:.*//;
   19: 	s/\ntotal revisions:.*//;
   20: 	s/\n\?.*//g if $count==1;
   21: 	s/^\?.*//g if $count==1;
   22: 	my $gt='&gt;';
   23: 	my $lt='&lt;';
   24: 	s/\>/$gt/g;
   25: 	s/\</$lt/g;
   26: 	print "$_";
   27:     }   
   28:     $count++;
   29: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>