vspacer
 
vspacer
 
Valid XHTML 1.0!
 
Valid CSS 1.0

ClearCase Commands : Directories

 

ZDS ClearCase Commands
 
26. To add a new directory to the source tree.

Again a multi part operation as, to achieve transparency, directories are themselves vob (versioned) objects.

#1 First checkout the directory under which you want to create the new sub-directory.
cl co -c "Add directory xxx" .

The period indicates that you are checking out a directory.

#2 mkdir xxx

#3 Give the new directory privilege level 775
cl protect -chmod 775 .

#4 To verify the privilege level is 775
ls -adl .

The directory attribute string should be: d rwr rwr r-x (7 7 5)

These last two steps will ensure that someone else can later manipulate the directory without having to come back to you to beg for the privilege!




27. To rename a directory in the /gl/vobs/netman/src tree.

Eg: /src/ui/thunk_ar

#1 Change to the directory you want to rename eg: /ui/thunk_ar and check it out:
cl co .

#2 Checkout the directory above the directory you want to rename : eg /ui
cl cd..
cl co .

#3 Rename the directory by mv'ing it:
cl mv thunk_ar thunk_31

#4 Check in the directories:
cl ci .
cl cd thunk_31
cl ci .




28. To rename a vob directory or element.

Checkout the directory that contains the directory or element to be renamed.
Do
cl mv oldname newname
for the directory or element. Check it in.

Download

ClearCase Commands (116KB)

   


Back to top | ZDS Home | This article updated January 14, 2004.