25
First, choose a directory $(SVN_DEV) to set up the environment. Note
26
that this directory cannot be changed later because the script
27
hardcodes build and link paths relative to the current working
30
To fetch and build trunk, simply don't pass anything.
25
First, choose a directory $(SVN_DEV) to set up the environment.
26
For example, $(SVN_DEV) could be the directory "~/svn".
27
Note that this directory cannot be changed later because the script
28
hardcodes build and link paths relative to the current working directory.
32
Now change into this directory and make the Makefile available in it:
35
$ svn checkout https://svn.apache.org/repos/asf/subversion/trunk/tools/dev/unix-build
36
$ ln -s unix-build/Makefile.svn Makefile
38
To fetch and build trunk, simply don't pass anything, just run 'make':
31
43
Pass the branch you want to build in BRANCH, e.g.
32
44
$ make BRANCH="1.5.x"
33
45
You can also pass a tag to build:
39
51
When the script has finished fetching and building, it uses
40
52
$(SVN_DEV)/prefix to install Subversion libraries and
41
53
binaries. $(SVN_DEV)/prefix/svn-trunk (or whatever you choose to
42
build) will contain the latest Subversion binaries: you should add
43
$(SVN_DEV)/prefix/svn-trunk/bin to your $PATH to use them. The
44
Makefile in $(SVN_DEV)/svn-trunk is configured to build with sane
54
build) will contain the latest Subversion binaries. You can add
55
$(SVN_DEV)/prefix/svn-trunk/bin to your $PATH to use them:
57
$ export PATH="$(SVN_DEV)/prefix/svn-trunk/bin:$PATH"
59
The Makefile in $(SVN_DEV)/svn-trunk is configured to build with sane
45
60
options: while developing Subversion, simply `svn up` to pull the
46
61
latest changes, `make` and `make install` to install the binaries in
47
$(SVN_DEV)/prefix/svn-trunk.
49
If at any point, you want to re-configure any of the packages to the
50
default configuration in Makefile.svn, just run the "<PACKAGE>-reset"
51
target in Makefile.svn before trying to rebuild again. If, in the
52
extreme case, you want to remove everything including the installed
53
binaries effectively returning to the starting point, use the "nuke"
62
$(SVN_DEV)/prefix/svn-trunk. This usually works fine. If not, you may
63
need to use the 'svn-reset' target and recompile everything.
65
If at any point, you want to recompile any of the packages with the
66
default configuration in Makefile.svn, use the *-clean and *-reset
67
target in Makefile.svn before trying to rebuild again. For example:
73
Or, if you want to recompile svn and all dependencies:
79
If you want to remove everything including the installed binaries effectively
80
returning to the starting point, use the "nuke" target (BE CAREFUL, this will
81
remove the 'svn' binary compiled from trunk which you might need to manage
82
existing working copies):