Using programming tools

Archiving changes made during the analysis

During our analysis of the code for testcase.c, we modified the sample program; specifically, we beautified the code using cb. Because it is always a good idea to track changes to a project, we should check the modified code back into SCCS.

To check the modified code back into SCCS, issue the command:

   delta s.testcase.c
Supply a brief comment describing the changes in response to the comment? prompt.

After the comment has been added, SCCS responds with a brief message indicating what has happened to the file:

   UX:delta: WARNING: No id keywords (cm7)
   1.2
   57 inserted
   31 deleted
   35 unchanged

To list the history of changes to the testcase file, issue the following command:

   prs s.testcase.c
You see:
   D 1.2 94/10/07 14:32:51 username 2 1     00000/00000/00117
   MRs:
   COMMENTS:
   sample editing changes made to this file
   

D 1.1 94/10/07 13:26:29 username 1 0 00117/00000/00000 MRs: COMMENTS: date and time created 94/10/07 13:26:29 by username

There are other tools available to retrieve an earlier version of the file, compare two versions of the file, and so forth. The ``Source Code Control System (SCCS)'' chapter in the Programming Tools Guide includes a detailed explanation and tutorial for using SCCS.


Next topic: Compiling the code
Previous topic: Using cxref

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003