sccslntree script

sccslntree is a script vaguely similar to the old "lndir" command. But instead of soft-linking files, it soft-links SCCS directories.

Assume you have a bunch of SCCS-controlled source directories in a hierachy something like

topsrc
topsrc/SCCS
topsrc/module1
topsrc/module1/SCCS
topsrc/module2
topsrc/module2/SCCS
topsrc/libs
topsrc/libs/lib1
topsrc/libs/lib1/SCCS
topsrc/libs/lib2
topsrc/libs/lib2/SCCS
If you 'cd' to somewhere else, like /tmp/build, and run 'sccslntree topsrc', it will make a new hierachy under /tmp/build, that looks like
/tmp/build
/tmp/build/SCCS -> topsrc/SCCS
/tmp/build/module1
/tmp/build/module1/SCCS -> topsrc/module1/SCCS
/tmp/build/module2
/tmp/build/module2/SCCS -> topsrc/module2/SCCS
/tmp/build/libs
/tmp/build/libs/lib1
/tmp/build/libs/lib1/SCCS -> topsrc/libs/lib1/SCCS
/tmp/build/libs/lib2
/tmp/build/libs/lib2/SCCS -> topsrc/libs/lib2/SCCS
Why bother to do all this?

Because it also does an "sccs get" for all controlled directories, which will get the latest checked-in revision of the files. You will then have a guaranteed "clean" copy of all files under SCCS control.

It lets you do this, EVEN IF DEVEOPERS HAVE FILES CHECKED OUT FOR EDIT, and will not interfere with their work in progres.

Make directories, but not files

If you just want the directory structure and SCCS links, but you dont want to waste time grabbing files, use the "-l" option ("link only")


Written by:Philip Brown
Back to Phil's Solaris pages