Clearcase命令导出元素 [英] Clearcase command to export an element

查看:51
本文介绍了Clearcase命令导出元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在大写字母保护中是否可以使用命令来导出文件的特定版本? (即元素)。我正在使用给定标签(使用 ct find。-ver lbtype(label)-cview -print 命令)执行查找标签,并希望导出查找返回的元素

Is there any command in clearcase which I can use to export a paricular version of a file? (i.e. an element). I am doing a find label with a given label (using ct find . -ver lbtype(label) -cview -print command) and want to export the elements returned by the find label to hard disk.

推荐答案

cleartool get (可以在快照或动态视图中使用)。

cleartool get could work (in a snapshot or dynamic view).

get –to C:\build\foo.c.temp \dev\hello_world\foo.c@@\main\2

不过,您将需要一个脚本来从%CLEARCASE_PN%中提取文件名,然后传递给所述脚本%CLEARCASE_XPN%(两个变量均由cleartool find命令设置)

You would need a script though, to extract from the %CLEARCASE_PN% the file name, and then pass to said script %CLEARCASE_XPN% (both variables are set by the cleartool find command)

对于通过找到的每个版本,将调用该脚本- exec指令

ct find . -ver lbtype(label) -cview -exec "myscript %CLEARCASE_PN% %CLEARCASE_XPN%"

,您可以从第一个参数构建导出路径,然后将第二个参数用作要使用的完整扩展路径名称,以便获取 查找选择的版本。

That way, you could build an export path from the first argument, and use the second argument as the full extended pathname to use in order to "get" the version selected by the find.

这篇关于Clearcase命令导出元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆