Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 524
  • Last Modified:

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.
0
gmayo
Asked:
gmayo
  • 2
1 Solution
 
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
 
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now