|
Setting up ClearCase for the first time
Before starting, make sure your environment variables are set up
as detailed HERE
Mount the Versioned Object Base (VOB) (only done once)
A VOB as ClearCase refers to the database in which deltas of
files are stored, is commonly referred to as a VOB. When a VOB
is only mounted once.
- Open ClearCase HomeBase
- Click on the "VOBs" tab
- Select the "Mount VOB" button
-
Select the "product" from the list and
double-click it. If it not in the list it must already be
mounted so then press cancel.
-
Repeat steps 3 & 4 for the VOB "vendor"
Create a View (only done once)
Your View in ClearCase is what determines what version of the
file(s) you will be looking at in the VOB. To create your first
view do the following:
-
Through the file browser create the directory
c:/view_store
-
Make the directory shared by right clicking on the
directory, select properties, and select share tab
- Open ClearCase HomeBase
- Click on the "Views" tab
- Select the "Create View" Button
- Select the "Dynamic Button"
-
Select the view tag and the view storage directory, as well
as the drive letter to mount the view on
- Click the finish button
To set your View:
NOTE: This step is unnecessary if you just created a view in the
previous step.
- Open ClearCase HomeBase
- Click on the "Views" tab
- Select the "Start View" button
-
Choose the your view name from the list and choose a drive
letter
- Click "OK"
Create Your Private Branch
- Open ClearCase Home Base
- Select the "Administration" tab
- Click the "Type Explorer" button
- Select VOB from list and click OK
- Double-click the "branch type" folder
- Click on Type menu in upper left corner of window
- Select "Create" from the Type menu
-
Name your branch with your USER name as part of the branch
name. This branch is referred to as <private branch>
in the remainder of this document. Description is a comment
field for adding the purpose for which this branch will be
used. Click OK when you have filled in the fields.
Set your Config_Spec
Your config_spec determines what exactly your view
"sees" in the VOB
- Open ClearCase Home Base
- Click on the "Views" tab
- Select the "Edit View Properties" Button
- Select the view you wish to edit from the list
- Click on the "Config Spec" tab
- Select the "edit" button
-
Edit the Config Spec. If you are working off of the
"release1" branch:
element * CHECKEDOUT
element * .../<private branch>/LATEST
mkbranch <private branch>
element * .../release1/LATEST
element * /main/LATEST
Select the "Apply" button
For the time being, contact the VOB administrator to create
labels. Also, if you need assistance creating your private
branch please contact.
Working With Files in Source Control
Checking Files Out
- Right click on the file
- Select the ClearCase submenu,
- Select "Check-Out"
Checking Files In
- Right click on the file
- Select the ClearCase submenu,
- Select "Check-In"
Adding Files to Source Control
-
Copy the file structure from your hard disk into the VOB.
-
Use NT find to locate all files in the directory
structure:
-
Select "find" from the tools menu in NT explorer
- Select "Files or Folders"
-
In the dialog box that appears, select files named *.*
- Browse for the location of your view and VOB
(i.e. Z:\firmware)
-
Select all the files in the box that you wish to add to
source control.
- Right Click and select the ClearCase sub-menu
- Select "Add to Source Control"
- Uncheck the box checked "Keep Checked-Out"
- Type in a comment as desired
- Select "Apply to All"
-
Wait patiently as ClearCase adds your files to Source Control
Building Software (Software Team Only)
-
In a cmd.exe window or an MKS shell window change
directories to your "view drive"/product.
-
To build type clearmake -C gnu If you are modifying
application code in a subdirectory, running clearmake will
re-build the software in that part of the application. When you
need to re-build the system do a clearmake -C gnu product.
-
Other targets in the make files are clean and clobber. The
clean target will remove all intermediate derived objects.
The clobber target has a dependency for clean and will
remove the end targets as well.
See also the
Makefile Reference Page!
|