SCCS extraction

I've got a load of files in SCCS format and need to extract the latest revision to plain text. I don't need to RVS or CVS them, all I want is a copy without all the previous revisions in it! I've seen sccs2rvs and similar scripts on the net, but these all seem to require that you have SCCS in the first place. Well, as far as I know, I don't have SCCS. What we do have is Red Hat Linux 9 and Windows programming skills.

So if somebody could point me to a link on how to convert the files, perhaps I can write a program to convert them - or is there a tool to do so already?

Many thanks

Geoff M.
LVL 8
gmayoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ahoffmannCommented:
> .. need to extract the latest revision to plain text.
well, that's a too vage definition of the revision you want, depending on the structure in your history file, i.e. branches, you need to know which latest revision you want

> Well, as far as I know, I don't have SCCS.
then it will be hard to extract the latest version

> What we do have is Red Hat Linux 9
install CSSC http://cssc.sf.net/
After installing, you have a wrapper named sccs which behaves exactly as original AT&T sccs.
Then you simply retrive your text like:
  sccs -d /path/to/s.dot-files/  get name-of-file

if you have a lot of files to extract, you better do:
  cd /path/for/your/files
  ln -s /path/to/s.dot-files/ SCCS
  sccs get list of file names

NOTE: make yourself used to get, in particular which version it will give you
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gmayoAuthor Commented:
>well, that's a too vage definition of the revision you want, depending on the structure in your history file, i.e. branches, you need to know which latest revision you want

Well, there are no branches, so the latest revision is quite simply as I stated: the latest (as in last) revision in the file. All the version control systems I've used default to the latest revision when you do a "get".

I'll give the CSSC thing a try, thanks. However, you seem to be contradicting yourself. First you're saying that it'll be hard to get the latest revision as I don't have SCCS, then you say I can use the CSSC thing... are you saying CSSC can't get the latest revision? Confused.

Geoff M.
0
ahoffmannCommented:
> I've used default to the latest revision when you do a "get".
SCCS default to the "latest" too, but if it was done on a branch, then you get that one, not the latest on the trunk.

> .. seem to be contradicting yourself.
no, I just wanted to remind you that the definition of "latest" depends, see comment above.
0
gheistCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

accept ahoffmann http:#16279767

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

gheist
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.