]> icculus.org git repositories - btb/d2x.git/blob - cvshowto.txt
fix compiler errors in MPW w/o OpenGL
[btb/d2x.git] / cvshowto.txt
1 Adapted from the d1x cvs howto <http://d1x.warpcore.org/cvshowto.txt>
2 by Bradley Bell <bradleyb@u.washington.edu>
3
4 A quick howto on accessing the d2x source with CVS.
5
6 0) if you are using windows, or some other non unix os, and the standard
7   command line cvs client, you will need to set your home directory.
8   set home=c:\home\
9   or something like that.
10
11 1) cd <your source dir>
12
13 2) Log in to the cvs server:
14    cvs -d :pserver:anonymous@cvs.icculus.org:/cvs/cvsroot login
15    (password is "anonymous").  You can also try it this way:
16    cvs -d :pserver:anonymous:anonymous@cvs.icculus.org:/cvs/cvsroot login
17
18    Download the source code:
19    cvs -z3 -d :pserver:anonymous@cvs.icculus.org:/cvs/cvsroot co d2x
20
21   This will retrieve the source into <current dir>/d2x
22   (note that this should only be done once.  After you already have the code,
23   merely do a "cvs update -PAd" from the d2x dir to update to the latest code)
24
25 3) Make your changes and stuff.  (Test them too).
26
27 4) You will want to do a cvs update before commiting, to make sure your
28   changes still work with any other changes that may have been commited while
29   you were working.
30
31 5) If you have readonly access:
32   If you have only modified existing files, this should generate a usable diff:
33   cvs -q diff -uRN . > mychanges.patch
34   (hopefully you would use a more useful name, and remember to examine the
35   result first, to make sure its ok.)
36   If you have added files or directories, this won't be as useful since you
37   can't use the 'cvs add' command to get cvs to recognize them.  In this case
38   you should diff manually, or just zip up the new files.
39
40   Once you have the patches/zips made, the best way to get them included is to
41   post a message to the descent-source list with the files attached, or an url
42   to the files. (see notes below)
43   
44 -or- if you have full cvs access:
45
46   cvs commit -m "summary of changes" <changed file(s)>
47   or, if you want to commit all changes (in current, and sub dirs), just:
48   cvs commit -m "summary of changes"
49   (note, only the files that CVS knows about will be commited.  *.o/*.bak/etc
50   will be ignored.  If you want to add a new file, use 'cvs add <file>')
51   If you have made several unrelated changes, please commit each file seperatly
52   with appropriate log messages, rather than blanketing them all in an
53   ambiguous message.
54
55 6) Now that you have the source downloaded, you no longer need steps 1-2.
56   Merely do a "cvs update" whenever you want to bring your tree up to the
57   latest code, and continue from step 3.
58
59 Notes:
60 It is highly recommend that all developers subscribe to the descent-source
61 mailing list.  To signup, send an email to majordomo@warpcore.org with
62 "subscribe descent-source your@email.address" in the body.
63
64 If some of your changes are too close to other peoples, update or commit may
65 cause a "conflict".  You should probably talk with whoevers code it conflicts
66 with, unless the solution is obvious.
67
68 Of course, this is only a brief overview.  It is recommended you browse the CVS
69 documention as well. (info cvs, or equivilant).  If you have questions, or
70 think this howto could use some clarification, feel free to ask.
71
72       A great book on cvs is available online:
73       http://cvsbook.red-bean.com/cvsbook.html
74
75 Where to download CVS: http://www.cyclic.com/cyclic-pages/howget.html