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