2003-12-01 08:15:19 +00:00
< html >
< head >
2003-12-21 21:27:22 +00:00
< title > Moodle Dokumentation: Wie Sie das CVS benutzen kö nnen< / title >
2003-12-01 08:15:19 +00:00
< link rel = "stylesheet" href = "../theme/standard/styles.php" type = "TEXT/CSS" >
< meta HTTP-EQUIV = "Content-Type" CONTENT = "text/html; charset=iso-8859-1" >
< / head >
< body bgcolor = "#ffffff" >
2004-09-16 17:13:57 +00:00
< br / > < h2 > Zugang und Nutzung des CVS< / h2 > < br / >
2003-12-21 21:27:22 +00:00
2004-09-16 17:13:57 +00:00
< blockquote > < p > Das CVS bietet den Zugang zu den aktuellen Entwicklerversionen von Moodle. Die Anleitung zur Nutzung des CVS wird nicht ins Deutsche ü bersetzt.< / p > < / blockquote > < br / > < br / >
< br / >
2003-12-21 21:27:22 +00:00
2003-12-01 08:15:19 +00:00
< h2 > Using CVS to access and update Moodle source code< / h2 >
2003-12-21 21:27:22 +00:00
< blockquote >
< p > CVS is the Concurrent Versioning System. It's a commonly used way of storing
source code because it keeps versions of all files so that nothing is ever
lost, and usage by different people is tracked. It also provides ways to merge
code if two or more people are working on the same file. All code and all
versions are stored on a central server (in this case, at < a href = "http://www.sf.net/" > Sourceforge< / a > ).
2003-12-01 08:15:19 +00:00
< / p >
2003-12-21 21:27:22 +00:00
< p > To use < a href = "http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/moodle/moodle/" > Moodle's
CVS archive< / a > (as a < a href = "http://sourceforge.net/project/memberlist.php?group_id=30935" > developer
with write access< / a > ), you first need to have an < a href = "http://sourceforge.net/account/register.php" > account
on Sourceforge< / a > . For the examples on this page, let's assume your username
is < strong > < font color = "#990000" > myusername< / font > < / strong > and your password
is < strong > < font color = "#990000" > mypassword< / font > < / strong > . Once you have
a Sourceforge account, contact me (< a
href="http://dougiamas.com/">Martin Dougiamas< / a > ) so I can give you write access
2003-12-01 08:15:19 +00:00
to particular directories.< / p >
2003-12-21 21:27:22 +00:00
< p > To avoid being prompted for < strong > < font color = "#990000" > mypassword< / font > < / strong >
every time you run a CVS command, follow the < a href = "http://sourceforge.net/account/editsshkeys.php" > Sourceforge
directions for using authorized keys< / a > . This step is optional, but it can
2003-12-01 08:15:19 +00:00
make your CVS experience a lot nicer.< / p >
2003-12-21 21:27:22 +00:00
< p > With that done, you should have all the permissions you need, so you just
need to set up your machine and download the current sources so you can start
2003-12-01 08:15:19 +00:00
working on them. Below are instructions for Unix and Windows systems.< / p >
< h3 > 1. Using CVS on Unix< / h3 >
2003-12-21 21:27:22 +00:00
< blockquote >
< p > Sourceforge CVS uses ssh as a transport layer for security, so you will
2003-12-01 08:15:19 +00:00
have to set this CVS_RSH environment variable in your Unix shell:< / p >
2003-12-21 21:27:22 +00:00
< blockquote >
2003-12-01 08:15:19 +00:00
< pre > < strong > setenv CVS_RSH ssh< / strong > (for csh, tcsh etc)< / pre >
< pre > < strong > export CVS_RSH=ssh< / strong > (for sh, bash etc)< / pre >
< / blockquote >
2003-12-21 21:27:22 +00:00
< p > It's best to put this in your .bashrc or .cshrc so you don't have to type
2003-12-01 08:15:19 +00:00
it all the time. Then, check out Moodle using this (all one line): < / p >
2003-12-21 21:27:22 +00:00
< blockquote >
2004-05-06 16:37:55 +00:00
< pre > < strong > cvs -z3 -d:ext:myusername@cvs.sourceforge.net:/cvsroot/moodle co moodle< / strong > < / pre >
2003-12-01 08:15:19 +00:00
< / blockquote >
2003-12-21 21:27:22 +00:00
< p > Don't try to do run this first CVS command into an existing moodle directory
2003-12-01 08:15:19 +00:00
- start fresh with a new directory.< / p >
2003-12-21 21:27:22 +00:00
< p > Note that you will be prompted for < strong > < font color = "#990000" > mypassword< / font > < / strong >
for each command unless you set up < a href = "http://sourceforge.net/account/editsshkeys.php" > authorized
2003-12-01 08:15:19 +00:00
keys< / a > < / p >
2003-12-21 21:27:22 +00:00
< p > Now, you should have a new 'moodle' directory. You can rename it and move
2003-12-01 08:15:19 +00:00
it around if you like. Go into it: < / p >
2003-12-21 21:27:22 +00:00
< blockquote >
2003-12-01 08:15:19 +00:00
< pre > < strong > cd moodle < / strong > < / pre >
< / blockquote >
2003-12-21 21:27:22 +00:00
< p > All the latest Moodle files should be in there. You can now change files
in your copy. To compare your files against the main CVS copy on the server
2003-12-01 08:15:19 +00:00
use cvs diff, eg: < / p >
2003-12-21 21:27:22 +00:00
< blockquote >
2003-12-01 08:15:19 +00:00
< pre > < strong > cvs diff -c config-dist.php
cvs diff -c lang< / strong > < / pre >
< / blockquote >
< p > To fetch the latest updates from the server use: < / p >
2003-12-21 21:27:22 +00:00
< blockquote >
2003-12-01 08:15:19 +00:00
< pre > < strong > cvs update -dP< / strong > < / pre >
< / blockquote >
2003-12-21 21:27:22 +00:00
< p > To copy your new files back to the server you would do something like:
2003-12-01 08:15:19 +00:00
< / p >
2003-12-21 21:27:22 +00:00
< blockquote >
< pre > < strong > cd lang/ca
2003-12-01 08:15:19 +00:00
cvs commit< / strong > < / pre >
< / blockquote >
2003-12-21 21:27:22 +00:00
< p > You will be prompted to add some comments (depends on your default text
editor) ... add a meangingful comment and close the editor ... the files
2003-12-01 08:15:19 +00:00
will be sent to Sourceforge and stored. Done! < / p >
2003-12-21 21:27:22 +00:00
< p > To save more time you can put default arguments into a file called .cvsrc
2003-12-01 08:15:19 +00:00
in your home directory. For example, mine contains: < / p >
2003-12-21 21:27:22 +00:00
< blockquote >
< pre > < strong > diff -c
2003-12-01 08:15:19 +00:00
update -dP< / strong > < / pre >
< / blockquote >
< p > Try 'cvs help' for more details ... < / p >
< p > < / p >
< / blockquote >
< h3 > 2. Using CVS on Windows< / h3 >
2003-12-21 21:27:22 +00:00
< blockquote >
2003-12-01 08:15:19 +00:00
< p > These instructions are based on notes provided by Mitsuhiro Yoshida < mits@mitstek.com> .< / p >
< p > Firstly, download and install WinCVS.< / p >
2003-12-21 21:27:22 +00:00
< blockquote >
2003-12-01 08:15:19 +00:00
< p > < a href = "https://sourceforge.net/project/showfiles.php?group_id=10072" > https://sourceforge.net/project/showfiles.php?group_id=10072< / a > < / p >
< / blockquote >
2003-12-21 21:27:22 +00:00
< p > Secondly, download sfsetup for SourceForge ssh access, install it and reboot
2003-12-01 08:15:19 +00:00
Windows.< / p >
2003-12-21 21:27:22 +00:00
< blockquote >
2003-12-01 08:15:19 +00:00
< p > < a href = "http://sourceforge.net/projects/sfsetup/" > http://sourceforge.net/projects/sfsetup/< / a > < / p >
< / blockquote >
2003-12-21 21:27:22 +00:00
< p > Next, configure WinCVS. Launch it, and select Admin -> Preferences.
2003-12-01 08:15:19 +00:00
Then change them as follows:< / p >
2003-12-21 21:27:22 +00:00
< blockquote >
2004-09-16 17:13:57 +00:00
< p > [General]< br / >
< strong > CVSROOT data< / strong > :< br / >
< strong > Authentication< / strong > : ssh< br / >
< strong > Path< / strong > : /cvsroot/moodle< br / >
< strong > Host address< / strong > : cvs.sourceforge.net< br / >
< strong > User name< / strong > : < font color = "#990000" > myusername< / font > < br / >
2004-05-06 16:37:55 +00:00
< strong > CVSROOT< / strong > : < font color = "#990000" > myusername< / font > @cvs.sourceforge.net:/cvsroot/moodle< / p >
2004-09-16 17:13:57 +00:00
< p > [Globals]< br / >
< strong > Checkout read-only< / strong > : uncheck< br / >
< strong > Supply control when adding files< / strong > : check< br / >
< strong > Quiet mode< / strong > : uncheck< br / >
< strong > TCP/IP compression< / strong > : check and select 9< br / >
< strong > Dirty files support< / strong > : check< br / >
< strong > Prune(remove) empty directories< / strong > : check< br / >
2003-12-01 08:15:19 +00:00
< strong > Disable splash screen< / strong > : uncheck< / p >
< / blockquote >
2003-12-21 21:27:22 +00:00
< p > Congratulations, WinCVS is set up. Now, you should check out a complete
2003-12-01 08:15:19 +00:00
working copy of the Moodle course code:< / p >
< ol >
< li > Select 'Create -> checkout'< / li >
2003-12-21 21:27:22 +00:00
< li > For the setting 'Module name and path on the server" , type " moodle" ,
2003-12-01 08:15:19 +00:00
then click OK.< / li >
2003-12-21 21:27:22 +00:00
< li > Type in < strong > < font color = "#990000" > mypassword< / font > < / strong > and
2003-12-01 08:15:19 +00:00
press Enter in the DOS window.< / li >
< / ol >
2003-12-21 21:27:22 +00:00
< p > After this first checkout, you can fetch updated files from the CVS server
2003-12-01 08:15:19 +00:00
like this:< / p >
< ol >
< li > Select folders or files you want to update< / li >
< li > Press right mouse button and select '< strong > Update selection< / strong > '< / li >
< li > Press OK button< / li >
2003-12-21 21:27:22 +00:00
< li > Type in < strong > < font color = "#990000" > mypassword< / font > < / strong > and
2003-12-01 08:15:19 +00:00
press Enter in the DOS window.< / li >
< / ol >
2003-12-21 21:27:22 +00:00
< p > After modifying files, you can commit them back to the CVS server like
2003-12-01 08:15:19 +00:00
this:< / p >
< ol >
< li > Select folders or files you want to commit< / li >
< li > Press right button and select '< strong > Commit selection< / strong > '< / li >
< li > Press OK button< / li >
< li > Type in a meaningful comment and press OK button.< / li >
2003-12-21 21:27:22 +00:00
< li > Type in < strong > < font color = "#990000" > mypassword< / font > < / strong > and
2003-12-01 08:15:19 +00:00
press Enter in the DOS window.< / li >
< / ol >
< / blockquote >
< p > < / p >
< p align = "center" > Good luck!< / p >
< p > < / p >
< / blockquote >
< p align = "CENTER" > < font size = "1" > < a href = "." target = "_top" > Moodle Documentation< / a > < / font > < / p >
2003-12-21 21:27:22 +00:00
< p align = "CENTER" > < font size = "1" > Version: $Id: features.html,v 1.2 2001/12/09
2003-12-01 08:15:19 +00:00
10:34:19 martin Exp $< / font > < / p >
< / body >
2004-05-06 16:37:55 +00:00
< / html >