Debian Codegraph @

ANNOUNCE

raw
1 A programming project required the creation of a Revision Control
2 System (RCS) front end. I started with inline system calls to the RCS
3 utilities, and by creating multiple parsing functions to extract information
4 from an RCS archive file.
5
6 I then decided to put all my functions in one place, and created Perl module
7 Rcs.pm.
8
9 The next step was to change my functions into object methods, and Rcs.pm
10 became object oriented.
11
12 This Perl module should be of interest to anyone creating an RCS front end.
13
14 Here's a quick and dirty example of how to check in a file.
15
16 use Rcs;
17
18 $obj = Rcs->new;
19 $obj->file('testfile.pl');
20
21 # Set RCS archive directory, is './RCS' by default
22 $obj->rcsdir("./project_tree/archive");
23
24 # Set working directory, is '.' by default
25 $obj->workdir("./project_tree/src");
26
27 $obj->ci('-mRevision Comment');
28
29 If there's any interest, I would like to make Rcs.pm publicly available.
30 Please let me know is you have any suggestions or comments.
31
32 Craig Freter
33 <[email protected]>