labeling - Labelling files with spaces in ClearCase -


we have script labels files recursively. here command executes label command.

cleartool ls -recurse -vob_only -visible -short | \     xargs cleartool mklabel -replace -follow vpceum_9.0.0.99 > label.txt 2>&1 

when encounter files spaces name such /directory/d1/my file here.doc, command errors off.

how clearcase/unix accept space?

you have tow approaches cleartool mklabel:

  • you can use mklabel directly, -recurse option.
    label files (with or without space) you. can label files not in current view.

     cleartool mklabel -recurse -replace -follow vpceum_9.0.0.99 
  • or, mentioned in "cleartool: how apply label files in current view only?", 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 label files spaces.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -