File: comments2.pl

package info (click to toggle)
librcs-perl 1.05-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 308 kB
  • ctags: 89
  • sloc: perl: 1,399; makefile: 2
file content (24 lines) | stat: -rwxr-xr-x 591 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/local/bin/perl -w
#------------------------------------------
# Access comments hash
#------------------------------------------
use strict;
use lib '.';
use Rcs;

Rcs->bindir('/usr/bin');
my $obj = Rcs->new;

$obj->rcsdir("./project/RCS");
$obj->workdir("./project/src");
$obj->file("Rcs.pm");

my %comments = $obj->comments;
my $revision;
foreach $revision (sort keys %comments) {
    #my $comments = $comments{$revision} ? $comments{$revision} : 'GGG';
    my $comments = $comments{$revision};
    print "======\n";
    print "Revision: $revision\n";
    print "$comments###\n";
}