mirrored from git://git.moodle.org/moodle.git
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
/
cvs.html
246 lines (178 loc) · 8.82 KB
/
cvs.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<html>
<head>
<title>Documentación de Moodle: Cómo usar el CVS</title>
<link rel="stylesheet" href="../theme/standard/styles.php" type="TEXT/CSS">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.sectionheading {
font-size: medium;
font-weight: bold;
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
border: 1px dotted;
padding: 10px;
background-color: #EEEEEE;
}
-->
</style>
</head>
<body bgcolor="#ffffff">
<h2>Cómo usar el <abbr title="Concurrent Versions System"
lang="en">CVS</abbr> para acceder al código fuente de Moodle y actualizarlo</h2>
<div style="padding-left: 3em;">
<p><abbr title="Concurrent Versions System" lang="en">CVS</abbr> es un Sistema
Concurrente de Versiones. Normalmente se usa como un forma de almacenar el
código fuente, ya que mantiene las versiones de todos los archivos de manera
que no se pierda nada, y se registra el uso que hacen diferentes personas.
También proporciona heramientas para combinar código si hay dos o más personas
trabajando en el mismo archivo. Todo el código y todas las versiones se almacenan
en un servidor central (en este caso, en <a target="_top"
href="http://www.sf.net/">Sourceforge</a>).</p>
<p>Para usar el <a target="_top" href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/moodle/moodle/">Repositorio
CVS de Moodle</a> (como <a
href="http://sourceforge.net/project/memberlist.php?group_id=30935">desarrollador
con acceso de escritura</a>), necesitará tener antes una <a
href="http://sourceforge.net/account/register.php">cuenta en Sourceforge</a>.
Para los ejemplos que presentamos en esta página vamos a asumir que su nombre
de usuario (<span lang="en">username</span>) es <strong
style="color: rgb(153, 0, 0); background-color: transparent;">myusername</strong>
y que su contraseña es <strong
style="color: rgb(153, 0, 0); background-color: transparent;">mypassword</strong>.
Fíjese especialmente en las instrucciones de Sourforge para <a target="_top" href="http://sourceforge.net/docman/display_doc.php?docid=768&group_id=1#develhomedir">crear
su directorio principal CVS</a> - una cosa que tiene que hacer con cada nueva
cuenta para habilitarla en el CVS. Básicamente tendrá que usar
ssh para conectar de forma interactiva con cvs.sourforge.net.</p>
<p>Una vez que tenga su cuenta de Sourceforge, contacte conmigo (<a
href="http://dougiamas.com/">Martin Dougiamas</a>) para que pueda darle su acceso
con permiso de escritura a determinados directorios.</p>
<p>Para evitar la solicitud de su contraseña (<strong
style="color: rgb(153, 0, 0); background-color: transparent;">mypassword</strong>)
cada vez que ejecute el comando de CVS, siga las <a
href="http://sourceforge.net/account/editsshkeys.php">Instrucciones para usar
claves autorizadas en Sourceforge</a>. Este paso es opcional, pero puede hacer
que su experiencia del uso de CVS sea más agradable.</p>
<p>Una vez hecho esto debe tener todos los permisos que necesita, de
manera que sólo necesitará arrancar su máquina y
descargar los actuales códigos fuente para poder empezar a
trabajar en ellos. A continuación hay instrucciones para los
sistemas Unix y Windows.</p>
<h3 class="sectionheading">1. Usar el CVS en Unix</h3>
<blockquote>
<p>El CVS de Sourceforge usa por seguridad <span>ssh</span> como <span
lang="en">capa de transporte</span>, de manera que usted tendrá que establecer
esta variable del entorno CVS_RSH en Unix:</p>
<blockquote>
<pre><strong>setenv CVS_RSH ssh</strong> (para csh, tcsh etc.)</pre>
<pre><strong>export CVS_RSH=ssh</strong> (para sh, bash etc.)</pre>
</blockquote>
<p>Lo mejor es poner esto en su .bashrc o .cshrc de manera que no tenga
que escribirlo todas las veces. Entonces, revise Moodle usando lo
siguiente (todo en una línea): </p>
<blockquote>
<pre><strong>cvs -z3 -d:ext:myusername@cvs.moodle.sourceforge.net:/cvsroot/moodle co moodle</strong></pre>
</blockquote>
<p>No intente ejecutar este primer comando CVS dentro de un directorio "moodle"
que ya exista. Comience con un directorio nuevo.</p>
<p>Advierta que se le solitita su contraseña (<strong
style="color: rgb(153, 0, 0); background-color: transparent;">mypassword</strong>) para
cada comando a menos que establezca una <a
href="http://sourceforge.net/account/editsshkeys.php">contraseña autorizada</a></p>
<p>Ahora tiene un nuevo directorio llamado "moodle". Puede renombrarlo y moverlo
si lo desea. Vaya a:</p>
<blockquote>
<pre><strong>cd moodle </strong></pre>
</blockquote>
<p>Aparecerán todos los últimos archivos de Moodle. Ahora
usted puede cambiar archivos en su copia. Para comparar sus archivos
con la copia del servidor CVS principal use <span>cvs diff</span>, por
ejemplo: </p>
<blockquote>
<pre><strong>cvs diff -c config-dist.php<br>cvs diff -c lang</strong></pre>
</blockquote>
<p>Para traer las últimas actualizaciones del servidor, use:</p>
<blockquote>
<pre><strong>cvs update -dP</strong> </pre>
</blockquote>
<p>Para copiar sus nuevos archivos de vuelta en el servidor
podría hacer algo como:</p>
<blockquote>
<pre><strong>cd lang/ca <br>cvs commit</strong> </pre>
</blockquote>
<p>Se le pedirá que añada algunos comentarios (esto
depende de su editor de texto) ... añada un comentario
significativo y cierre el editor ... los archivos se enviarán a
Sourceforge y serán almacenados. ¡Hecho! </p>
<p>Para ahorrar tiempo puede poner argumentos por omisión en el
archivo llamado <span>.cvsrc </span> en su directorio principal. Por
ejemplo, el mío contiene:</p>
<blockquote>
<pre><strong>diff -c <br>update -dP</strong> </pre>
</blockquote>
<p>Intente "cvs help" para obtener más detalles ... </p>
<p> </p>
</blockquote>
<h3 class="sectionheading">2. Usar CVS en Windows</h3>
<blockquote>
<p>Antes que nada, necesita descargar una copia nueva de Moodle usando su
cuenta de desarrollador.</p>
<blockquote>
<p> 1. Descargue TortoiseCVS de <a target="_top" href="http://www.tortoisecvs.org/">tortoisecvs.org</a>
e instálelo, luego reinicie el ordenador.<br>
<br>
2. Localice una carpeta o cree una nueva en algún lugar donde
quiera descargar Moodle.<br>
<br>
3. Haga clic con el botón derecho en esa carpeta y elija "<strong>CVS
Checkout</strong>" del menú. Debería ver un cuadro
de diálogo.<br>
<br>
4. Copie este texto en el campo CVSROOT (¡utilizando su propio
nombre de usuario!):</p>
<blockquote>
<pre> :ext:<font color="#990000">myusername</font>@cvs.moodle.sourceforge.net:/cvsroot/moodle</pre>
</blockquote>
<p><br>
5. Presione el botón: "<strong>Fetch list...</strong>".<br>
<br>
6. A la derecha del botón debería ver una lista de módulos:
elija "<strong>moodle</strong>" en esa lista.<br>
<br>
7. Apriete el botón: "<strong>OK</strong>" y se debería
descargar todo.<br>
</p>
</blockquote>
<p>Los archivos en proceso de descarga se muestran en un cuadro de diálogo,
y en poco tiempo debería tener una copia completa de Mooodle. Después
de esta primera comprobación (<em>checkout</em>), puede traerse
los últimos archivos actualizados del servidor CVS.</p>
<blockquote>
<p> 1. Haga clic con el botón derecho del ratón en su carpeta
moodle (o en cualquier archivo) y seleccione "<strong>CVS Update</strong>".
<br>
</p>
</blockquote>
<p>Tras haber modificado algún archivo (se dará cuenta de
que cambian de color verde a rojo), puede enviarlos de nuevo al servidor
CVS de esta forma:</p>
<blockquote>
<p> 1. Haga clic con el botón derecho en su carpeta moodle (o en
cualquier archivo) y seleccione "<strong>CVS Commit...</strong>".<br>
<br>
2. En el cuadro de diálogo, teclee una descripción clara
de los cambios que está enviando.<br>
<br>
3. Haga clic en "OK". Los cambios serán mandados al
servidor.<br>
</p>
</blockquote>
<p> </p>
<p align="center">¡Buena suerte!</p>
<p> </p>
</blockquote>
<p> </p>
</div>
<p align="CENTER"><font size="1"><a href="." target="_top">Documentación
de Moodle</a></font></p>
<p align="CENTER"><font size="1">Version: $Id$</font></p>
</body>
</html>