ab11edc68d3f7c1750416429e233fb2ef5a16477
[ikiwiki.git] / docs / handbook / handbook-updating-using.mdwn
1
2 ## Configuration 
3
4
5 DragonFly uses the git(1) distributed revision control system.  If it is not already on the system, it needs to be installed via pkgsrc(7) (`/usr/pkgsrc/devel/scmgit`).
6 cvsup is guided by a configuration file that describes what files to update, and the source from which to update them.
7
8
9 A fresh copy of the repository can be cloned anywhere.  Note that the directory to clone into (`/usr/src` in the following example) must not exist, so all previous work in this directory has to be saved and the directory be removed prior to cloning. Simple setup and updating of local repository is done using `/usr/Makefile`:
10
11     # cd /usr
12     # make help  # get help
13     # make src-update
14
15 Somewhat finer control can be achieved using git(1) directly: To clone the repository and check out the master branch (this will take some time):
16
17     # cd /usr
18     # git clone -o chlamydia git://chlamydia.fs.ei.tum.de/dragonfly.git src
19     # cd src
20
21 The repository can be held up to date by pulling frequently (to set up a cron(8) job, git(1)'s `--git-dir` option can be used):
22
23     # cd /usr/src
24     # git pull