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