| 92 |
|
|
| 93 |
To obtain the latest sources type: |
To obtain the latest sources type: |
| 94 |
\begin{verbatim} |
\begin{verbatim} |
| 95 |
% cvs co MITgcm |
% cvs co -P MITgcm |
| 96 |
\end{verbatim} |
\end{verbatim} |
| 97 |
or to get a specific release type: |
or to get a specific release type: |
| 98 |
\begin{verbatim} |
\begin{verbatim} |
| 99 |
% cvs co -P -r checkpoint52i_post MITgcm |
% cvs co -P -r checkpoint52i_post MITgcm |
| 100 |
\end{verbatim} |
\end{verbatim} |
| 101 |
|
The CVS command ``\texttt{cvs co}'' is the abreviation of the full-name |
| 102 |
|
``\texttt{cvs checkout}'' command and using the option ``-P'' (\texttt{cvs co -P}) |
| 103 |
|
will prevent to download unnecessary empty directories. |
| 104 |
|
|
| 105 |
The MITgcm web site contains further directions concerning the source |
The MITgcm web site contains further directions concerning the source |
| 106 |
code and CVS. It also contains a web interface to our CVS archive so |
code and CVS. It also contains a web interface to our CVS archive so |
| 107 |
that one may easily view the state of files, revisions, and other |
that one may easily view the state of files, revisions, and other |
| 145 |
MITgcm code can be found |
MITgcm code can be found |
| 146 |
\begin{rawhtml} <A href="http://mitgcm.org/public/using_cvs.html" target="idontexist"> \end{rawhtml} |
\begin{rawhtml} <A href="http://mitgcm.org/public/using_cvs.html" target="idontexist"> \end{rawhtml} |
| 147 |
here |
here |
| 148 |
\begin{rawhtml} </A> \end{rawhtml} |
\begin{rawhtml} </A> \end{rawhtml}. |
|
. |
|
| 149 |
It is important to note that the CVS aliases in Table |
It is important to note that the CVS aliases in Table |
| 150 |
\ref{tab:cvsModules} cannot be used in conjunction with the CVS |
\ref{tab:cvsModules} cannot be used in conjunction with the CVS |
| 151 |
\texttt{-d DIRNAME} option. However, the \texttt{MITgcm} directories |
\texttt{-d DIRNAME} option. However, the \texttt{MITgcm} directories |
| 152 |
they create can be changed to a different name following the check-out: |
they create can be changed to a different name following the check-out: |
| 153 |
\begin{verbatim} |
\begin{verbatim} |
| 154 |
% cvs co MITgcm_verif_basic |
% cvs co -P MITgcm_verif_basic |
| 155 |
% mv MITgcm MITgcm_verif_basic |
% mv MITgcm MITgcm_verif_basic |
| 156 |
\end{verbatim} |
\end{verbatim} |
| 157 |
|
|
| 158 |
|
Note that it is possible to checkout code without ``cvs login'' and without |
| 159 |
|
setting any shell environment variables by specifying the pserver name and |
| 160 |
|
password in one line, for example: |
| 161 |
|
\begin{verbatim} |
| 162 |
|
% cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co -P MITgcm |
| 163 |
|
\end{verbatim} |
| 164 |
|
|
| 165 |
\subsubsection{Upgrading from an earlier version} |
\subsubsection{Upgrading from an earlier version} |
| 166 |
|
|
| 167 |
If you already have an earlier version of the code you can ``upgrade'' |
If you already have an earlier version of the code you can ``upgrade'' |
| 172 |
\end{verbatim} |
\end{verbatim} |
| 173 |
and then issue the cvs update command such as: |
and then issue the cvs update command such as: |
| 174 |
\begin{verbatim} |
\begin{verbatim} |
| 175 |
% cvs -q update -r checkpoint52i_post -d -P |
% cvs -q update -d -P -r checkpoint52i_post |
| 176 |
\end{verbatim} |
\end{verbatim} |
| 177 |
This will update the ``tag'' to ``checkpoint52i\_post'', add any new |
This will update the ``tag'' to ``checkpoint52i\_post'', add any new |
| 178 |
directories (-d) and remove any empty directories (-P). The -q option |
directories (-d) and remove any empty directories (-P). The -q option |
| 218 |
latest code'' and we haven't made a ``tag'' or ``release'' since that |
latest code'' and we haven't made a ``tag'' or ``release'' since that |
| 219 |
patch then you'll need to get the latest code: |
patch then you'll need to get the latest code: |
| 220 |
\begin{verbatim} |
\begin{verbatim} |
| 221 |
% cvs -q update -A -d -P |
% cvs -q update -d -P -A |
| 222 |
\end{verbatim} |
\end{verbatim} |
| 223 |
Unlike, the ``check-out'' and ``update'' procedures above, there is no |
Unlike, the ``check-out'' and ``update'' procedures above, there is no |
| 224 |
``tag'' or release name. The -A tells CVS to upgrade to the |
``tag'' or release name. The -A tells CVS to upgrade to the |