Small tutorial on SCCS

The Basics

SCCS is a software versioning and revision control system. It works by maintaining information about files in a main directory (called SCCS). Each person working on the code creates a symbolic link to this directory in his/her own workspace. There is an SCCS directory for each project.

Setup

Decide on a central repository to store the code. This can be something like /usr/src/projectName.
Create the SCCS directory there: mkdir /usr/src/projectName/SCCS. Put the original files into the SCCS system using
sccs create filename
where filename is the name of the file.

Usage

To modify a file, check it out for editing (edit), make the modifications, and then check it back in (delget).

Version info in the source code

SCCS provides the ability to mark your source files with the sccs information, such as the date of the last modification. To enable this, include the string %W% %G% in your source code. Generally this would be placed inside a comment. Once a file is checked in, the string gets replaced by the name of the file and the date of last modification.