ClearCase list of files with given label type applied

scheibk picture scheibk · Aug 17, 2009 · Viewed 23.9k times · Source

We currently use clearcase on a project, and there is an HTML file that was generated with clearcase that contains all of the filenames of the files that were included in a label.

I am supposed to generate this file with a different label. I know how to get all of the filenames that were included in a label using the cleartool command line, but that doesn't help me with generating the file. I don't want to manually take that list and create the HTML file. So, how do I create this file?

I currently do not have a copy of the HTML file, but I have seen it. Hopefully this question isn't too confusing and too vague. I'm still relatively new to clearcase and just found out some of the cleartool commands today, so hopefully this is an easy question to answer.

Answer

VonC picture VonC · Aug 17, 2009

I am not sure about the exact HTML file you are referring to. Do you have an example of its name, and of its content? If you edit your question with those data, I will be able to add to this answer.

But anyway, if that file is not generated directly by ClearCase, the solution remains to parse a cleartool find command (see also Additional examples of the cleartool find command article)

cleartool find . –version "lbtype(MY_LABEL-1.0)"

and to build your html file with, for instance, a Perl script.
You could even add this action into a ClearCase sub-menu entry, like illustrated in the ten best scripts article.