0% found this document useful (0 votes)
208 views3 pages

GVP Cmds

This document provides instructions and summaries for using Clearcase and GVP (Gather/Validate/Publish) tools. It describes how to view and manage cron jobs, common Clearcase commands, adding directories and files to Clearcase, configuring GVP for a project, updating views with new labels, and the gather/publish process.

Uploaded by

Shashank Mistry
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
208 views3 pages

GVP Cmds

This document provides instructions and summaries for using Clearcase and GVP (Gather/Validate/Publish) tools. It describes how to view and manage cron jobs, common Clearcase commands, adding directories and files to Clearcase, configuring GVP for a project, updating views with new labels, and the gather/publish process.

Uploaded by

Shashank Mistry
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Title : GVP Clearcase Ready Reference

Author: Shailesh Dave

Cron Jobs
---------

1) Need to login as phdacrel to work on cronjobs


Machine : dusk13 Username: phdacrel

2) To view current cronjobs


step1) Login to dusk13 as user phdacrel
step2) cd gvp_cron_jobs
step3) crontab -l

3) To create new cron job


Repeat Step1 to Step2
step3) copy conjobs current file to a newfile says cronnew
step4) Add new cronjobs to this cronnew file
step5) do "crontab cronnew - This starts cronjob with new file cronnew

4) To stop cronjob
Same as 3 above but keep the cronnew empty. supplying crontab with empty stops
previous job and does not run new

Clearcase
--------

1) Some common commands


ct lsview | grep <reg-exp> -> View current views. Adding username as regexp
shows only users views
xclearcase & -> gui clearcase
ct lsvtree -> version tree
ct lsprivate -> see private files in this dir ie not part of
clearcase
ct lsco -r -> list chekedout files. -r is for recursive
ct ls -> list clearcase files in this directory
ct ci -c " " file -> checkin file. use -nc for no comments
ct co -c " " file -> checkout file. use -nc for no comments
ct unco file -> undo checkout of a file
ct describe file -> To see gvp info for a file
ct lsco -r -me -> Show files checkout by me in all view, recursive
ct lsco -r -me -cview -> Show files checkout by me in current view,
recursive
ct diff -pre[decessor] -g[raphical] <filename> -> Show graphical diff window for
file with predecessor

2) To add a directory
step1) Checkout parent directory
step2) Add new directory with following command
ct mkelem -eltype directory -master -c "comment" <directory name>
step3) Checkin the new directory and the parent directory

3) To add file
step1) Checkout parent directory
step2) Add new file with following command
ct mkelem -master -c "comment" <file name>
step3) Checkin the new file and the parent directory
GVP
----

1) Some common commands


gvp gather -l -> List files that are new/edited in this gather
gvp gather -l -u -f -> This is basic gather command. -l is list. -f is feature
gvp status -> Once gather is issues, this can be used to see the
current status
of gather. Make sure to be in relevant view
gvp -p /vobs/jaguar/phdacuw/<projname> cwa "viewName" -> To create a view
example: 'gvp -p /vobs/jaguar/phdacuw/block_template cwa a_sh'
creates a view "username_block_template_a_sh"
gvp uwa -v -merge -> Update work area
gvp list -> Lists all the labels for the current project

2) Configuring gvp for the project


All gvp related files for any project are in <projname>/.GVP directory
.GVP/<projname>.cfg is the file that contains all rules
You can do following
a) edit email variables to control whom to send emails on gather and publish. It
is comma separated list
b) change validation process like command to run, test to run for validate etc..
c) change publish process like command to run, test to run for publish etc..

.GVP/<projname>_cs.tpl - sets cross-reference among projects for interdependent


code

3) To update currrent view with new label from refenrece project


step1) get latest label of reference project by doing "gvp list" in reference
project view
step2) checkout <proj>/.GVP/<proj_name>_cs.tpl in current view
step3) replace old label with new label for reference
step4) move out to <proj> directory
step5) run "build_cs -s ./.GVP/<proj_name>_cs.tpl - this updates label in config
specs and updates view
step6) Run test to see that everything works
step7) checkin the new .GVP/<proj_name>_cs.tpl
step8) Do gather (gvp gather -l -u -f)

4) To just update currrent view with its own new label


step1) In current work area,do 'gvp uwa -v -merge'
step2) This results in some merges or conflicts in current view
step3) For all merges, do 'ct diff' to see if there are any change that you
would want
step4) For conflicts, run the command given at end of 'update' log to see
conflicts. Resolve and commmit changes
step5) Else check-in merged files

Gather/Publish process
----------------------
Let us say there are two projects a and b. b is using a files.

1) Checkin edited files in a


2) gvp -l (optional) Gives list of files that will be gathered
3) gvp gather -l -u -f -> Issue gather
4) Do "gvp status" periodically to see if validate is complete.
5) do "gvp list" to get a list of labels with last being the latest

For b project that needs to use latest files from a project:


6) checkout .GVP/b_cs.tpl
7) edit .GVP/b_cs.tpl
8) Update the label for the reference of a
9) do "build_cs -s .GVP/b_cs.tpl" to update workarea with files corresponding to
new label of a
Note: Do not use gvp uwa -v -merge after using build_cs -s till you have done
gather,
else the label again gets overwritten
10) Run test to see that everything works
11) Checkin .GVP/b_cs.tpl and other files
12) do "gather -l -u -f"
13) do gvp uwa -v -merge

To get the latest label for the current project, just do "gvp uwa -v -merge"

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy