10 |
|
<font color=red>R</font>elease <font color=red>A</font>nd |
11 |
|
<font color=red>M</font>anagement |
12 |
|
</center> |
13 |
< |
Contents<br> |
13 |
> |
Contents:<br> |
14 |
|
<ul> |
15 |
|
<li><a href=#QS>Quick-Start Build</a> |
16 |
|
<li><a href=#BOP>Alternative Build Operations</a> |
21 |
|
<a name=QS> |
22 |
|
<h1>Building Operations</h2></a> |
23 |
|
<li><h2>Quick-Start -- for PreDefined Builds</h2> |
24 |
< |
Goto the directory of the binary source files |
24 |
> |
Go to the directory of the binary source files |
25 |
|
<font +1> |
26 |
|
<p> |
27 |
|
<b>cd <em>binary_dir</em></b> |
28 |
|
<p> |
29 |
|
</font> |
30 |
< |
Start the build process |
30 |
> |
Start the build process: |
31 |
|
<p> |
32 |
|
<font +1> |
33 |
|
<b>scram build</b> |
34 |
|
</font> |
35 |
|
<p> |
36 |
< |
Setup your environment |
36 |
> |
Setup your environment: |
37 |
|
<p> |
38 |
|
<font +1> |
39 |
< |
<b>eval `scram runtime -csh`</b> |
39 |
> |
<b> eval `scram runtime -csh`</b> |
40 |
|
</font> |
41 |
|
For csh like shells |
42 |
|
<br> |
44 |
|
<font +1> |
45 |
|
<b>eval `scram runtime -sh`</b> |
46 |
|
</font> |
47 |
< |
For sh like shells |
47 |
> |
for Bourne-like shells. |
48 |
|
<p> |
49 |
< |
rehash for your shell. |
49 |
> |
Rehash your shell: |
50 |
|
<p> |
51 |
|
<font +1> |
52 |
|
<b>rehash</b> |
55 |
|
Just type the executable name to run ... |
56 |
|
<p> |
57 |
|
<li><a name=BOP><h2>Alternative Build Operations</h2></a> |
58 |
+ |
|
59 |
|
There are a number of targets available to help you specify exactly what you |
60 |
|
wish to build. <br> |
61 |
|
If no target is specified a default action is performed |
62 |
|
which is defined according to the policy of the given project. |
63 |
|
<p> |
64 |
< |
<h3>General Invocation</h3> |
64 |
> |
<b>General Invocation:</b><p> |
65 |
|
<font +1> |
66 |
|
<b>scram build <em>target_name</em></b> |
67 |
|
</font> |
68 |
|
<p> |
69 |
< |
The target names available will be listed with the <b>scram build help</b> command |
69 |
> |
The target names available will be listed with the <b>scram build help</b> command. |
70 |
|
</ol> |
71 |
|
<a name=Def> |
72 |
|
<h1>Constructing a BuildFile to describe a binary</h1> |
73 |
|
<ol> |
74 |
|
<li><h2>The <bin> tag</h2> |
75 |
< |
Syntax |
75 |
> |
Syntax: |
76 |
|
<pre> |
77 |
|
<bin file=<em>filename</em> [name=alternativename]> |
78 |
|
You can add some descriptive documentation for your executable here - how about a href? |
81 |
|
Every executable to be made must have a corresponding bin tag in the BuildFile. <p> |
82 |
|
The optional <b>name=</b> |
83 |
|
argument allows you to change the name from the default (which is the filename |
84 |
< |
less the subscript) |
84 |
> |
less the subscript). |
85 |
|
<p> |
86 |
|
<li><a name=Dep><h2>Specifying Dependencies</h2></a> |
87 |
|
A binary can depend on many other elements. Currently scram supports the concepts and associated |
115 |
|
<td><font color=green> |
116 |
|
<Group name=<em>group_name</em>></font></td> |
117 |
|
<td>Inform build system to set a specific group. |
118 |
< |
Groups are either containers of other groups (defined at the project configuration level) |
119 |
< |
, or can be used to switch in/out functionality |
119 |
< |
from an <a href=export.html><export> interface</a> |
118 |
> |
Groups are either containers of other groups (defined at the project configuration level), |
119 |
> |
or can be used to switch in/out functionality from an <a href=export.html><export> interface</a> |
120 |
|
</td> |
121 |
|
</table> |
122 |
+ |
|
123 |
|
Each of these tags can be put in the BuildFile to build up an 'Environment' in which the |
124 |
|
binary is to be built. The BuildFile itself provides the base environment, however more control |
125 |
|
can be achieved using the <Environment> </Environment> tags, to determine its extent. |
132 |
|
<hr> |
133 |
|
<table border=1 width=100%> |
134 |
|
<td align=left> |
135 |
< |
<a href=mailto:Christopher.Williams@cern.ch |
136 |
< |
>Chris Williams</a> |
135 |
> |
<a href=mailto:Shaun.Ashby@cern.ch |
136 |
> |
>Shaun Ashby</a> |
137 |
|
</td> |
138 |
|
<td align=center> |
139 |
< |
Last Updated Wed Oct 13 16:20:58 1999 |
139 |
> |
<SCRIPT LANGUAGE="JAVASCRIPT">document.write("Last Updated "+ document.lastModified );</SCRIPT> |
140 |
|
</td> |
141 |
|
<td align=right><a href=/cgi-cmc/pagestat>Show Stats</a> |
142 |
|
</td> |