CC commands

(1 comment)

My CC commands lazy:

 

 

>>> create a CC element >>>

***********************>create a CC directory element
checkout parent directory

cd <parent directory>
ct co -nc .

create directory element

ct mkelem -nc -eltype directory <new directory element>

please note, at EMC paramter -master must be added
see Site modifications, EMC

In some cases it might be useful to create VOB symbolic links instead of new directories. Keep in mind to branch the linked directory.

ct ln -s <linked directory> <link name>

checkin parent directory

ct ci -nc .

checkin new directory

ct ci -nc <new directory element>
***********************>create a CC file element
checkout parent directory

cd <parent directory>
ct co -nc .

create file element

ct mkelem -nc -eltype cf_msc[_bin] <new file element>

please note, at EMC paramter -master must be added
see Site modifications, EMC

mkelem can transform a unix file into a CC file element.
Aswell it can be combined with a checkin option.

ct mkelem -nc -eltype cf_msc[_bin] -ci <unix file (= new file element)>

checkin parent directory

ct ci -nc .
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


>>> CC load order >>>
list load order: ct des -fmt '%[LoadOrder]NSa %En\n' `find /vobs/cf_db/nw/cluster500/* {} \;`
set load order : ct mkattr -nc -rep LoadOrder "1910" cluster300/SITRA1a/SITRA1a_CFG.VLR.REMOTE.PSTNS_300_COM_10-810-S_ML-MF
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<



>>> CC triggers >>>
list triggers: ct lstype -kind trtype -invob /vobs/cf_db
trigger properties: ct describe trtype:"checkinPost_notifier"
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


>>> CC- automatic load order : >>>

-execute the following two lines in CFA with your old view in order to create a file containg the cleacase statements.

echo "#! /bin/csh -f" >> /home/youruserid/ccattributes

ct des -fmt '/usr/atria/bin/cleartool mkattr -nc -rep LoadOrder "%[LoadOrder]NSa" %En\n' `find ./ -type f` >> /home/youruserid/ccattributes

-after the findmerge, execute your, /home/youruserid/ccattributes, script in CFA with the new view, all the elements are still checked out. execute the following lines

setenv CFA_ATTR_USE_PREV
setenv CFA_LO_USE_PREV

-now you are able to checkin all the files.


<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<



>>> move labels to latest version , various projects >>>

*** R14.1 ETSI **************************************************************************************************************************
ct mklbtype -c "Marks all versions belonging to CM211" CM211

ct lstype -kin lbtype

pwd

# check for checked out ccfiles
ct lsco -r -cview /vobs/cf_db/

ct find /vobs/cf_db/ -type f -version 'version(.../cold_mscr141_cn81_etsi/LATEST) && lbtype(CM210)' -print



ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_etsi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/AUC_Blocks/nw/*/*/*

ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_etsi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/cf_db/nw/cluster*/*/*
ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_etsi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/cf_db/nw/noncluster*/*/*
ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_etsi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/cf_db/nw/nwspecific/*/*/*
ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_etsi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/cf_db/nw/sea/*/*
ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_etsi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/cf_db/nw/tbi/*/*
ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_etsi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/cf_db/nw/testblocks/*/*


***R 12 ETSI ****************************************************************************************************************************

ct mklbtype -c "Marks all versions belonging to LSV1114A" LSV114A

ct lstype -kin lbtype

pwd
ct lsco -r -cview /vobs/cf_db/

ct find /vobs/cf_db/ -type f -version 'version(.../cold_mscr12_cn12_etsi/LATEST) && \!lbtype(LSV1208)' -print

ct find /vobs/AUC_Blocks/nw/ -type f -version 'version(.../cold_mscr12_cn12_etsi/LATEST) && \!lbtype(LSV1148)' -print


ct mklabel -nc -ver '{version(.../cold_mscr12_cn12_etsi/LATEST) && lbtype(LSV045) && \!eltype(directory)}' LSV048 /vobs/AUC_Blocks/nw/*/*/*

ct mklabel -nc -ver '{version(.../cold_mscr12_cn12_etsi/LATEST) && lbtype(LSV115) && \!eltype(directory)}' LSV1114B /vobs/cf_db/nw/*/*/*
ct mklabel -nc -ver '{version(.../cold_mscr12_cn12_etsi/LATEST) && lbtype(LSV045) && \!eltype(directory)}' LSV048 /vobs/cf_db/nw/noncluster*/*/*
ct mklabel -nc -ver '{version(.../cold_mscr12_cn12_etsi/LATEST) && lbtype(LSV045) && \!eltype(directory)}' LSV048 /vobs/cf_db/nw/nwspecific/*/*/*
ct mklabel -nc -ver '{version(.../cold_mscr12_cn12_etsi/LATEST) && lbtype(LSV045) && \!eltype(directory)}' LSV048 /vobs/cf_db/nw/sea/*/*
ct mklabel -nc -ver '{version(.../cold_mscr12_cn12_etsi/LATEST) && lbtype(LSV045) && \!eltype(directory)}' LSV048 /vobs/cf_db/nw/tbi/*/*
ct mklabel -nc -ver '{version(.../cold_mscr12_cn12_etsi/LATEST) && lbtype(LSV045) && \!eltype(directory)}' LSV048 /vobs/cf_db/nw/testblocks/*/*


*** R12 ANSI ****************************************************************************************************************************

ct find /vobs/cf_db/ -type f -version 'version(.../cold_mscr12_cn12_ansi/LATEST) && \!lbtype(LSV1148)' -print

ct find /vobs/AUC_Blocks/nw/ -type f -version 'version(.../cold_mscr12_cn12_ansi/LATEST) && \!lbtype(LSV1148)' -print


ct mklabel -nc -ver '{version(.../cold_mscr12_cn12_ansi/LATEST) && lbtype(LSV045) && \!eltype(directory)}' LSV048 /vobs/AUC_Blocks/nw/*/*/*

ct mklabel -nc -ver '{version(.../cold_mscr12_cn12_ansi/LATEST) && lbtype(LSV115) && \!eltype(directory)}' LSV1114B /vobs/cf_db/nw_ansi/*/*/*

ct mklabel -nc -ver '{version(.../cold_mscr12_cn12_ansi/LATEST) && lbtype(LSV115) && \!eltype(directory)}' LSV1114B /vobs/cf_db/nw_ansi/nwspecific/*/*/*

*** R14.1 ANSI **************************************************************************************************************************
ct mklbtype -c "Marks all versions belonging to CM211" CM211

ct lstype -kin lbtype

pwd
ct lsco -r -cview /vobs/cf_db/

ct find /vobs/cf_db/ -type f -version 'version(.../cold_mscr141_cn81_ansi/LATEST) && \!lbtype(CM207)' -print



ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_ansi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/AUC_Blocks/nw/*/*/*

ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_ansi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/cf_db/nw/cluster*/*/*
ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_ansi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/cf_db/nw/noncluster*/*/*
ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_ansi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/cf_db/nw/nwspecific/*/*/*
ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_ansi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/cf_db/nw/sea/*/*
ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_ansi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/cf_db/nw/tbi/*/*
ct mklabel -nc -ver '{version(.../cold_mscr141_cn81_ansi/LATEST) && lbtype(CM203) && \!eltype(directory)}' CM204 /vobs/cf_db/nw/testblocks/*/*

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<



>>> CC merge >>>
merge

ct findmerge * -type f -nc -fver .../cold_mscr132_cn70_etsi/CM214 -print
ct findmerge * -type f -nc -fver .../cold_mscr132_cn70_etsi/CM214 -merge

remove

\rm -f findmerge.log.2008-07-18T10:54:* */*contrib

label

ct mklabel -rep CM214 `ct lsco -me -cvie -r -s`

check in

ct ci -nc */*

<<<<<<<<<<<<<<<<<<<<<



>>> Rename a file >>>
-check out dir:
ct co -nc .
-rename file:
ct mv file-name_A file-name_B
-check in dir:
ct ci -nc .
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Currently unrated

Comments

Comment deleted 1 year, 9 months ago

New Comment

required

required (not published)

optional