HowToUseCvs
From MLDonkey
[edit] Preliminary
The official source tree is currently hosted by [Savannah].
[edit] How to do a fresh Checkout
To get sources from Savannah:
cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/mldonkey co mldonkey
[edit] Updating from cvs
enter mldonkey source directory and update from cvs:
cd mldonkey
cvs -q -z3 up -dPA
[edit] Updating from cvs and discarding local changes
enter mldonkey source directory and update from cvs:
cd mldonkey
cvs -q -z3 upd -dPAC
[edit] Checking diffs with cvs (in case you made changes)
enter mldonkey source directory and diff against original cvs version:
cd mldonkey
cvs diff -u -w
[edit] Applying a patch (for example: Pango's patch)
cd mldonkey patch -p0 -E -s <.../your.patch _-- *BSD users: use gpatch instead_
You're ready to recompile.
[edit] Checking out a specific version from CVS
cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/mldonkey co -r <release tag> mldonkey
[edit] Updating to a specific version from CVS
cd mldonkey
cvs -q -z3 upd -dPA -r <release tag>
Release tags can be found in the ~ChangeLog (e.g. release-2-7-1). The ~ChangeLog can be found in the directory distrib/ or here: http://cvs.savannah.gnu.org/viewvc/mldonkey/mldonkey/distrib/ChangeLog?view=markup
In the ~ChangeLog you will find something like "release-2-7-1", this is the release tag.
[edit] Looking up release tags in the CVS
You can also look up the tags in the CVS. To do this enter mldonkey source directory and check the status of some file, like the changelog:
cd mldonkey
cvs -q -z3 stat -v distrib/~ChangeLog
You get the full status of the file, including all tags attached to it.
[edit] Branches
To get the newest version from a branch enter the mldonkey source directory, then update from cvs using the branch tag:
cd mldonkey
cvs -q -z3 upd -dP -r <branch tag>
All further updates not using the 'A' option will update to the latest version on the branch.
