SCCS (aka “what(1)”) identifiers

Find and report “@(#)” strings.

SCCS was one of the first version control systems, but because it operated on a per file basis, it could not supply a single “version identifier” for an entire source code tree.

In order to be able to tell which source file versions a binary program was built from, SCCS introduced the “what(1) string” concept: A single line of text prefixes with the magic sequence “@(#)”, which could be automatically generated and updated by SCCS, and embedded in both source and binary files.

This concept was picked up by subsequent version control systems (RCS, CVS and Subversion etc.)

Usage

from autoarchaeologist.generic import sccs_id
…
self.add_examiner(*sccs_id.ALL)

Notes

Only the first string is reported.

Test input

Documentation