The catcr command displays the configuration records (CRs) for the specified derived objects (DOs) and, optionally, for their build dependencies. The ClearCase make tool (clearmake, or omake for Windows) creates a CR each time it executes a build script that creates one or more DOs. You can also list the configuration record header and build scripts only.
Note: ClearCase creates configuration records for dynamic views only.
For more information about configuration records and derived objects, see Building Software.
You can use –check with –union. This combination determines whether a CR contains any of the following:
This option is useful for isolating a derived object that was built as a dependency of another one. For example, this command displays the CR of the derived object named hello.obj that was used to build hello.exe in the current view:
Note: If a view-private file listed in the CR is converted to an element after the CR is created and has at least one checked-in version, that file is considered to be an element and is listed by –element_only.
Use the lsdo command to list derived objects with their DO IDs.
do-pname can be a DO version, specified with any version-specification method (standard pathname, version-extended pathname, and so on).
Note: Most examples show the same CR processed with different options. Some output lines have been split for clarity.
cmd-context catcr bgrs
Target bgrs built by jones.dvt
Host "oxygen" running SunOS 4.1.1 (sun4c)
Reference Time 11-Dec-94.12:02:39, this audit started 11-Dec-94.12:04:52
View was oxygen: /home/jones/views/920615.vws
Initial working directory was vob1/docaux/bgr/sun4
MVFS objects:
----------------------------
/vobs/docaux/bgr/libbgr/sun4/libbgr.a@@10-Dec.16:45.1893
/vobs/docaux/bgr/sun4/bgrs@@11-Dec.12:05.1956
/vobs/docaux/bgr/sun4/buga@@11-Dec.12:04.1926
.
.
.----------------------------/vobs/docaux/bgr/sun4/bugs.o@@11-Dec.12:03.1902
/vobs/docaux/bgr/sun4/bugsched.o@@11-Dec.12:04.1953
.
.
.
----------------------------
Variables and Options:
----------------------------
CC=/usr/bin/cc
CFLAGS=-I../I../libbgr -DBSD -DSCCS -g
ENV_LDFLAGS=../libbgr/sun4/.a
OBJECTS=main.o pick.o bugs.o bugr.o bugi.o bugf.o bugc.o bugl.o buge.o
bugd.o buga.o bugh.o bugw.o bugfld.o bugdt.o bugu1.o bugu2.o bugsched.o
----------------------------
Build Script:
----------------------------
/usr/bin/cc -I ../libbgr -DBSD -DSCCS -g main.o pick.o bugs.o
bugr.o bugi.o bugf.o bugc.o bugl.o buge.o bugd.o buga.o bugh.o
bugw.o bugfld.o bugdt.o bugu1.o bugu2.o bugsched.o
-o bgrs ../libbgr/sun4/libbgr.a
----------------------------
cmd-context catcr -flat bgrs.exe
----------------------------
MVFS objects:
----------------------------
1 \vob1\docaux\bgr\buga.c@@\main\1 <19-Dec-94.11:49:03>
1 \vob1\docaux\bgr\bugc.c@@\main\1 <19-Dec-94.11:49:09>
1 \vob1\docaux\bgr\bugd.c@@\main\1 <19-Dec-94.11:49:14>
20\vob1\docaux\bgr\bugs.h@@\main\3 <17-Jun-94.23:55:22>
1 \vob1\docaux\bgr\bugsched.c@@\main\1 <19-Dec-94.11:50:07>
.
.
.
2\vob1\docaux\bgr\bugw.obj@@11-Dec.12:04.1932
2\vob1\docaux\bgr\main.obj@@11-Dec.12:03.1896
The integer at the beginning of an entry indicates the number of times the object was referenced during the build. For example, \vob1\docaux\bgr\bugs.h was referenced 20 times.
cmd-context catcr -select bugsched.o -element_only bgrs
Target bugsched.o built by akp.user
Host "oxygen" running SunOS 4.1.1 (sun4c)
Reference Time 11-Dec-94.15:23:21, this audit started 11-Dec-.94.15:23:39
View was neptune:/usr/people/akp/views/940615.vws
Initial working directory was /vobs/docaux/bgr/sun4
----------------------------
MVFS objects:
----------------------------
/vobs/docaux/bgr/bugs.h@@/main/3 <17-Jun-94.23:55:22>
/vobs/docaux/bgr/bugsched.c@@/main/2 <11-Dec-94.15:23:04>
/vobs/docaux/bgr/libbgr/stint.h@@/main/2 <08-Sep-94.10:06:04>
----------------------------
Variables and Options:
----------------------------
CC=/usr/bin/cc
CFLAGS=-I../libbgr -DBSD -DSCCS -g
RM=rm -f
SRC=..
----------------------------
Build Script:
----------------------------
rm -f bugsched.o ; /usr/bin/cc -c -I../libbgr -DBSD -DSCCS -g ../bugsched.c
----------------------------
cmd-context catcr -name '*.h' bgrs.exe
----------------------------
MVFS objects:
----------------------------
20\vob1\docaux\bgr\bugs.h@@\main\3 <17-Jun-94.23:55:22>
19\vob1\docaux\bgr\libbgr\intstint.h@@\main\1 <19-Dec-94.11:54:50>
36\vob1\docaux\bgr\libbgr\stint.h@@\main\2 <08-Sep-94.10:06:04>
1\vob1\docaux\bgr\spar.h@@\main\1 <19-Dec-94.11:50:42>
cmd-context catcr –scripts_only sun5/clearmake
Target clearmake built by bert.user
Host "bosco" running SunOS 5.7 (sun4u)
Reference Time 27-Mar-01.13:30:31, this audit started 27-Mar-01.13:30:52
View was bosco:/export/home/bert/views/bert_V5.0.BL1.vws
Initial working directory was /vobs/atria/bin/mmake/sun5
----------------------------
Build Script:
----------------------------
@echo "linking clearmake"
clearaudit, clearmake, config_spec, diffcr, ls, lsdo, rmdo, wildcards_ccase, Building Software
Copyright© 2003 Rational Software. All Rights Reserved.