/usr/share/doc/librcs-perl/examples/symrev.pl is in librcs-perl 1.05-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/usr/local/bin/perl -w
#------------------------------------------
# Test symrev method
#------------------------------------------
use strict;
use Rcs;
#Rcs->bindir('/usr/bin');
my $obj = Rcs->new;
$obj->rcsdir("./project/RCS");
$obj->workdir("./project/src");
$obj->file("testfile");
(my $symbol = shift) or die "Usage: $0 symbol\n";
# scalar mode
print "Scalar mode:\n";
my $revision = $obj->symrev($symbol);
print "Symbol : Revision = $symbol : $revision\n";
# list mode
print "\nList mode:\n";
my %symbols = $obj->symrev($symbol);
foreach (keys %symbols) {
print "Symbol : Revision = $_ : $symbols{$_}\n";
}
|