Help on tools like SCCS, SPRs etc..
Darin McGrew
mcgrew at ichthous.Sun.COM
Thu Aug 23 03:32:50 AEST 1990
steve at Pkg.Mcc.COM (Steve Madere) writes:
>
>By the way, my copy of the RCS doc was apparrently stored under RCS and
>because everywhere where they try to describe an RCS expansion macro
>(last modification date etc.) what shows up in the doc is not the macro
>but its expansion! I quote:
>
>To obtain such identification place the marker
> $Header: /usr/src/local/bin/rcs/dist/RCS/rcs.ms,v 1.1 89/10/30 15:54:06
>trinkle Exp $
Sigh. Sounds like someone didn't know how to imbed a null
character into the macro to prevent it's expansion.
>Does anybody know where I can find a list of the unexpanded macros?
The unexpanded macro is just the expanded macro without the stuff
from the ':' (inclusive) to the '$' (exclusive). In other words,
the unexpanded macro for "$Header: ...$" is "$Header$".
This is one of the advantages RCS has over SCCS--the ID strings
don't have a special "unexpanded form", so you can't clobber them
by modifying a file, and then going through the checkout/checkin
procedure and replacing the checked-out version with your
modified version. Of course, the flip side is that there is no
way to preserve existing ID strings other than changing them (eg,
change "$Header: ...$" to "$Old-Header: ...$" in every file).
Darin McGrew mcgrew at Eng.Sun.COM
Affiliation stated for identification purposes only.
More information about the Comp.unix.questions
mailing list