Adding new file or directory into source control

Addng new file "myfile" into /vobs/myvob

cd /vobs/myvob
cleartool co -c "Adding new file" .
cleartool mkelem -master -c "Adding new file" myfile
cleartool ci myfile
cleartool cleartool ci .

Addng new directory "mydir" into /vobs/myvob

cd /vobs/myvob
cleartool co -c "Adding new directory" .
cleartool mkdir -master -c "Adding new dir" mydir
cleartool ci mydir
cleartool cleartool ci .

Importing multiple files/directories into source control

Addng new directory "/opt/mydir/newdir" and its children into /vobs/myvob/mydir

cd /vobs/myvob/mydir
clearfsimport -preview -c "Importing the newdir" -master -nsetevent –recurse /opt/mydir/newdir .
clearfsimport -c "Importing the newdir" -master -nsetevent –recurse /opt/mydir/newdir .

Loading