How do I change file names introduced to SCCS

Rob Lemley rob at b15.INGR.COM
Thu Nov 1 03:08:35 AEST 1990


In <1990Oct30.125900.14693 at resam.dk> andrew at resam.dk (Leif Andrew Rump) writes:

>I introduced a file some time ago into SCCS called xyz.c,
>now I want to change it's name to abc.c - how is it done?
>I would like to keep the file history - so SCCS will give
>me the right file depending on which version I retrieve.

Try:
	mv s.xyz.c s.abc.c

You will always get the right file (ie: the text for any version and
the file history will be correct) but from now on, the name will be
"abc.c" regardless of which version you request.

To my knowledge, the name of the retrieved file is always the same as 
the s-file with the leading "s." removed.  I don't believe there is
any way within SCCS to cause different versions to be gotten into
different file names.  If this is what you want, a "front end" program
to SCCS may be your only alternative.

Another alternative would be to create (admin) a new file: s.abc.c
with the first version (delta) the same as the last delta of the
s.xyz.c file.  If you MUST change the file name for future releases
but maintain the old file name for old releases, I tend to lean
toward this solution.

Rob
--
Rob Lemley
System Consultant, Scanning Software, Intergraph, Huntsville, AL
...!uunet!ingr!b15!rob    OR    b15!rcl at ingr.com
205-730-1546



More information about the Comp.unix.questions mailing list