1 |
Example changing link of SEASAT |
2 |
|
3 |
|
4 |
==> first change it on test web site |
5 |
cd /data5/ecco2_web_site/ecco2.jpl.nasa.gov |
6 |
nedit index.html & |
7 |
==> check that web site is OK |
8 |
cvs -q up |
9 |
cvs -q diff |
10 |
cvs commit |
11 |
|
12 |
==> This puts your change on main web site |
13 |
cd /home/web |
14 |
cvs -q up |
15 |
chmod g+w * |
16 |
cvs -q up |
17 |
|
18 |
|
19 |
============================================================== |
20 |
|
21 |
|
22 |
Adding this directory and contents to CVS server: |
23 |
|
24 |
==> after creating MITgcm_contrib/ecco2_web/ecco2.jpl.nasa.gov |
25 |
==> not discussed here |
26 |
|
27 |
cd /home |
28 |
cvs co -d web MITgcm_contrib/ecco2_web/ecco2.jpl.nasa.gov |
29 |
cd web |
30 |
cvs -q up |
31 |
cvs add *.html *.txt favicon.ico |
32 |
cvs -q up |
33 |
cvs commit |
34 |
|
35 |
==> created a .cvsignore file for files or directories that |
36 |
==> that should not be visible to CVS |
37 |
==> make sure to remove file from .cvsignore prior to adding |
38 |
==> to CVS tree |
39 |
|
40 |
cvs -q up |
41 |
cvs add .cvsignore meetings people products |
42 |
cd meetings |
43 |
cvs -q up |
44 |
cvs add * |
45 |
cd .. |
46 |
cvs -q up |
47 |
cvs commit |
48 |
cvs -q up |
49 |
|
50 |
|
51 |
============================================================== |
52 |
|
53 |
Benji: |
54 |
we used the following commands to add html files to the |
55 |
MITgcm contrib CVS website : |
56 |
|
57 |
|
58 |
web directory already in CVS: |
59 |
/data1/pictures/www_ecco_group.org |
60 |
|
61 |
|
62 |
create mirror: |
63 |
/data5/ecco2_web_site/MITgcm_contrib/ |
64 |
|
65 |
cvs co /MITgcm_contrib/highres_cube/README |
66 |
|
67 |
(important copies the CVS link on to data5) |
68 |
|
69 |
mkdir ecco2_web |
70 |
|
71 |
cvs -q up -> returns a question what to do. |
72 |
|
73 |
cvs add ecco2_web -> add the directory to repository |
74 |
-> be sure if you want the directory name the way it is, it's messy to |
75 |
delete them.... |
76 |
|
77 |
repeat: |
78 |
|
79 |
cvs -q up -> ensures that you added the directory |
80 |
|
81 |
cp html files from skylla:/home/web/ |
82 |
|
83 |
|
84 |
cvs -q up -> asks for files |
85 |
|
86 |
cvs add *.html -> add all the files in the directory |
87 |
|
88 |
cvs -q up |
89 |
|
90 |
cvs commit -> returns prompt, enter text which appears on the website |
91 |
|
92 |
e.g. starting to populate ecco2_web |
93 |
|
94 |
----------------------- |
95 |
|
96 |
demonstrated how to change a file and add it to the repository: |
97 |
|
98 |
changed the file website_improvements.txt on skylla |
99 |
|
100 |
ask for update |
101 |
cvs -q up -> returned prompt, that the file has changed. |
102 |
cvs add filename |
103 |
cvs commit -> enter text: changes in xyz |
104 |
|
105 |
cvs -q up or check website to see whether changes are online. |
106 |
|
107 |
|
108 |
-------------------------- |
109 |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 |
Dimitris CVS Usage Notes |
115 |
|
116 |
================================================================= |
117 |
|
118 |
To check out a clean, latest, working copy |
119 |
(Option -P is needed to remove empty directories): |
120 |
cvs checkout -P MITgcm |
121 |
|
122 |
To do an update, use |
123 |
cvs -q up -d -P |
124 |
to get any new directories. |
125 |
|
126 |
To see what files have changed but without updating: |
127 |
cvs -n update |
128 |
|
129 |
To check out and rename a directory |
130 |
cvs co -d 2005 www.ecco-group.org/ecco_2005_pub.html |
131 |
cvs co -d 2006 www.ecco-group.org/ecco_2006_pub.html |
132 |
cvs co -d 2007 www.ecco-group.org/ecco_2007_pub.html |
133 |
cvs co -d 2008 www.ecco-group.org/ecco_2008_pub.html |
134 |
cvs co -d 2009 www.ecco-group.org/ecco_2009_pub.html |
135 |
|
136 |
================================================================= |
137 |
|
138 |
JPL repository: |
139 |
|
140 |
To export a copy without CVS subdirectories: |
141 |
cvs export -D today mitgcmuv |
142 |
|
143 |
To check out a clean, latest, working copy: |
144 |
cvs checkout -P mitgcmuv |
145 |
|
146 |
To checkout or export latest copy from a branch: |
147 |
cvs checkout -r branch_name mitgcmuv |
148 |
|
149 |
To checkout or export a particular version, e.g., that of |
150 |
04/19/99 on branch c19-jpl-dimitri tagged R033099: |
151 |
cvs checkout -D "04/20/99" -r c19-jpl-dimitri mitgcmuv |
152 |
or |
153 |
cvs checkout -r R033099 mitgcmuv |
154 |
|
155 |
To create a branch based the current revision in the working copy: |
156 |
cvs tag -b branch_name |
157 |
cvs update -r branch_name |
158 |
|
159 |
To add a file |
160 |
cvs add file_name |
161 |
|
162 |
To add a binary file |
163 |
cvs add -kb file_name |
164 |
|
165 |
To remove a file |
166 |
cvs remove file_name |
167 |
|
168 |
To check for updates on working directory: |
169 |
cvs update |
170 |
|
171 |
To merge with branch for first time: |
172 |
cvs update -j other_branch |
173 |
|
174 |
For subsequent merges: |
175 |
cvs update -j other_branch:date_of_last_merge -j other_branch |
176 |
|
177 |
To commit changes: |
178 |
cvs commit |
179 |
|
180 |
To import a copy of the code on a vendor branch, merge changes in the main |
181 |
trunk, and tag it (note [-W "... -k 'b'"] is for binary files): |
182 |
cvs import -W "verification/exp2/SS* verification/exp2/*Lev* verification\ |
183 |
/exp2/t* verification/exp2/w* verification/exp5/E* verification/exp5\ |
184 |
/Q* verification/exp5/SS* verification/exp5/dQ* verification/exp5\ |
185 |
/*Lev* verification/exp5/w* -k 'b'" mitgcmuv c19-jpl c19_990824 |
186 |
cvs checkout -jc19-jpl:yesterday -jc19-jpl mitgcmuv |
187 |
cvs commit |
188 |
cvs tag c19_990824 |
189 |
|