We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

SCCS extraction

gmayo
gmayo asked
on
Medium Priority
576 Views
Last Modified: 2010-04-21
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.
Comment
Watch Question

> .. 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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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.
> 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.
Top Expert 2015

Commented:
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
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.