1 |
williamc |
1.1.2.1 |
<! Style Sheet Header>
|
2 |
|
|
<html>
|
3 |
|
|
<head>
|
4 |
williamc |
1.1.2.2 |
<title>Controllingg SCRAM Versions</title>
|
5 |
|
|
<body bgcolor="beige">
|
6 |
williamc |
1.1.2.1 |
<! End Style Sheet Header -----------Insert Text Here --------------------->
|
7 |
|
|
<center>
|
8 |
williamc |
1.1.2.2 |
<h1>Controlling SCRAM Versions</h1>
|
9 |
|
|
<font color=red>S</font>oftware <font color=red>C</font>onfiguration,
|
10 |
|
|
<font color=red>R</font>elease <font color=red>A</font>nd
|
11 |
|
|
<font color=red>M</font>anagement
|
12 |
williamc |
1.1.2.1 |
</center>
|
13 |
williamc |
1.1.2.3 |
<h4>Contents:</h4>
|
14 |
|
|
<ul>
|
15 |
|
|
<li><a href=#Current>Checking the Current Version</a>
|
16 |
|
|
<li><a href=#Download>Downloading SCRAM versions</a>
|
17 |
|
|
<li><a href=#Default>Setting a Default version</a>
|
18 |
|
|
<li><a href=#Over>Overriding the default selection</a>
|
19 |
|
|
<li><a href=#Auto>Automated version selection</a>
|
20 |
|
|
</ul>
|
21 |
williamc |
1.1.2.1 |
<hr>
|
22 |
williamc |
1.1.2.3 |
<a name=Current>
|
23 |
|
|
<h2>Checking the Current Version</h2></a>
|
24 |
williamc |
1.1.2.2 |
The version of scram you are using can be found with the command<p>
|
25 |
williamc |
1.1.2.1 |
<pre>
|
26 |
williamc |
1.1.2.2 |
scram version
|
27 |
williamc |
1.1.2.1 |
</pre>
|
28 |
|
|
<p>
|
29 |
williamc |
1.1.2.3 |
<a name=Download>
|
30 |
|
|
<h2>Downloading Alternative SCRAM versions</h2></a>
|
31 |
williamc |
1.1.2.1 |
Once a version of SCRAM has been installed, downloading of other SCRAM versions
|
32 |
|
|
becomes trivial with the <b>scram version</b> command.
|
33 |
williamc |
1.1.2.2 |
<br>
|
34 |
williamc |
1.1.2.1 |
If you supply a version number as an argument, SCRAM will check to see if the
|
35 |
|
|
specified version is already installed. If it isn't then it will attempt to
|
36 |
|
|
download the requested version automatically.
|
37 |
|
|
<p>
|
38 |
|
|
e.g.
|
39 |
|
|
<pre>
|
40 |
|
|
scram version V0_9_11
|
41 |
|
|
</pre>
|
42 |
|
|
<p>
|
43 |
williamc |
1.1.2.3 |
<a name=Default>
|
44 |
|
|
<h2>Making a version the default</h2></a>
|
45 |
williamc |
1.1.2.1 |
Running the <em>install_scram</em> script of a specific version
|
46 |
|
|
(see <a href=install.html>Installation Guide</a>)
|
47 |
|
|
will make that version the default.<p>
|
48 |
williamc |
1.1.2.3 |
<a name=Over>
|
49 |
|
|
<h2>Overriding the default Version</h2></a>
|
50 |
williamc |
1.1.2.1 |
The default version can be overridden at any time by setting the
|
51 |
|
|
<b>SCRAM_HOME</b> environmental variable to point to the top of the version
|
52 |
|
|
required. It must be the full path to the version.
|
53 |
williamc |
1.1.2.3 |
<p>
|
54 |
|
|
<a name=Auto>
|
55 |
|
|
<h2>Automated Version Selection</h2></a>
|
56 |
|
|
<em>(Version V0_9_40 and above)</em>
|
57 |
|
|
Scram can be made to automatically select the correct version to use for a
|
58 |
|
|
given project area, overridding any other version selection mechanism.<p>
|
59 |
|
|
To turn this feature on, simply create the file <em>.SCRAM/scram_version</em>
|
60 |
|
|
(of your project development/release area) containing the required
|
61 |
|
|
SCRAM version tag. Any scram command issued in that area then gets directed to
|
62 |
|
|
the correct version if it is installed.
|
63 |
|
|
<p>
|
64 |
|
|
If the required version is not installed then a warning is issued, however
|
65 |
|
|
execution of the command continues in the current version.
|
66 |
|
|
|
67 |
williamc |
1.1.2.1 |
<! Style Sheet Footer ---------------Do not change anything after this line-->
|
68 |
|
|
<hr>
|
69 |
|
|
<table border=1 width=100%>
|
70 |
|
|
<td align=left>
|
71 |
|
|
<a href=mailto:Christopher.Williams@cern.ch
|
72 |
|
|
>Chris Williams</a>
|
73 |
|
|
</td>
|
74 |
|
|
<td align=center>
|
75 |
|
|
<script language="JavaScript">
|
76 |
|
|
<!---//hide script from old browsers
|
77 |
|
|
document.write( "<br>Last updated "+ document.lastModified
|
78 |
|
|
);
|
79 |
|
|
//end hiding contents --->
|
80 |
|
|
</script>
|
81 |
|
|
</td>
|
82 |
|
|
<td align=right>Show <a href=/cgi-cmc/pagestat>Stats</a>
|
83 |
|
|
</td>
|
84 |
|
|
</table>
|
85 |
|
|
</body> </html>
|
86 |
|
|
<! End Style Sheet Footer>
|