Hi John,
John Lawlor wrote:
>
> Hi,
>
> I have a little perly and CC problem that I am wondering could a few of ye
> help me with.
>
> I have a perl script that will,
> a) Checkout a version file,
> b) Update the version number,
> c) Checkin the version file,
> d) Apply a label to the whole VOB,
> e) Change the config spec so it is looking at the label.
>
> but i am coming up against a problem, I cannot checkout the file using a
> path name, I must start the perl script in the same directory as the
> version file to check it out, but then the label is only applied to the
> files in that directory.
>
For applying label you can use the VOB name (with -recurse option) to
apply labels instead of present directory
> How can i navigate around directories using perl and cleartool?. Here is
> the perl I use to checkout and checkin the files.
>
You should be able to do pretty much direct only thing is you don't want
to go to a different drive. You can also store your path to vob root and
keep going back and forth.
> open (CTOOL, "$Cleartool checkout -c \"BUILD$buildnumber\" versioninfo.h
> |");
>
> open (CTOOL, "$Cleartool checkin -c \"BUILD$buildnumber\" -identical
> version.h |");
>
> I've tried open (CTOOL, "$Cleartool checkout -c \"BUILD$buildnumber\"
> /directory1/directory2/sources/versioninfo.h |");, from the root of the vob
> but this does not seem to work.
You are using obsolute path.. try checking out any file from the VOB
ROOT and pass file name as "directory1/directory2/sources/versioninfo.h"
instead of "/directory1/directory2/sources/versioninfo.h".
>
> Does anybody have any ideas?
>
> Thanks in advance,
>
hope this helps.
> John.
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:26:34 EDT