Clearcase command to export an element

亡梦爱人 提交于 2019-11-28 13:00:19

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

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

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)

That script would be called for each version found through an -exec directive

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!