-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathREADME.DIST
More file actions
113 lines (75 loc) · 3.53 KB
/
README.DIST
File metadata and controls
113 lines (75 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
How to create SILC distributions
================================
This document describes how to prepare SILC distributions in SILC source
tree and how to package distributions for releasing. This also defines
the procedure what one should do when distribution is created for
releasing.
The distdir/ directory contains all distributions that can be created
from the source tree. The distdir/default cannot be packaged, it must
be used only for development.
Preparing distribution
======================
To prepare a specific distribution with specific version for packaging,
give command:
autodist <name> <version>
Where the <name> is the distribution name. It is one of the distributions
that was defined in distdir/ directory. The <version> is the version of
the distribution that will be prepared. The version format is
major.minor.build, for example 0.9.10. Example:
autodist client 0.9.15
This prepares 'client' distribution of version 0.9.15. The package will
have the version 0.9.15 automatically.
NOTE: Those distribution that have RPM spec files you should specify the
RPM release version to autodist also by doing the following:
autodist toolkit 1.1.2 0.fc7
where the "0.fc7" will become the RPM release version. If you omit the
release version the default currently is "0.fc7".
Configuring and compiling the distribution
==========================================
When you prepare the distribution for releasing you should configure the
distribution without any specific configuration options, hence just give
the command:
./configure
NOTE: If you have SILC Toolkit installed to your system you must use
the following command to configure the distribution, so that the Toolkit
from the system is not used:
PKG_CONFIG=. ./configure
To compile the distribution, give command:
make
If you want you can clear the environment first with make clean command,
but this is not necessary.
Packaging the distribution
==========================
After the distribution is prepared, configured and compiled it can be
packaged with the following commands:
make -C doc dist-hook
makedist --bzip2
The 'makedist --bzip2' creates the default 'tar.gz' and 'tar.bz2'
distribution.
NOTE: Before giving this command, make sure that you do not have any of
the tests in the SILC source tree compiled. If they are the binaries
will be included in the distribution which is not allowed. The tests are
always located in the tests/ directory, for example lib/silccore/tests/.
The tests are not compiled by default, but if you compiled them by
yourself make sure you make clean them before creating the distribution.
NOTE: Same thing must be assured for silcer/ and tutorial/ sub
directories. Make sure they are not compiled and does not include any
extra files. If you haven't compiled them after the CVS checkout, they do
not include any extra files.
NOTE for 'toolkit' distribution: Running ./configure for toolkit
distribution is not necessary. Toolkit is packaged simply by giving
command:
makedist
Before releasing the distribution
=================================
Before releasing the distribution the created distribution must be tagged
in the CVS so that it can be checkout at a later time, if needed. The tag
format is as follows:
silc_<name>_<version>
Where <name> is the distribution name and <version> is the version of the
distribution in following format: major_minor_build, for example 0_9_10.
Example:
silc_client_0_9_15
To tag the distribution go to the root of the SILC CVS source tree and
give, for example, command:
cvs tag silc_client_0_9_15