Labelling files with spaces in ClearCase

蓝咒 提交于 2019-12-01 15:29:17
VonC

You have tow approaches with cleartool mklabel:

  • you can use mklabel directly, with the -recurse option.
    That will label all the files (with or without space) for you. But that can label files that are not in your current view.

     cleartool mklabel -recurse -replace -follow VPCEUM_9.0.0.99
    
  • Or, as I mentioned in "Cleartool: How to apply label to files which are in my current view only?", you use cleartool find:

    # Windows syntax
    cleartool find . -cview -exec "cleartool mklabel -replace TEST_LABEL \"%CLEARCASE_XPN%\""
    
    # Unix syntax
    cleartool find . -cview -exec 'cleartool mklabel -replace TEST_LABEL "$CLEARCASE_XPN"'
    

The "$CLEARCASE_XPN" part allows you to label files with spaces.

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