1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-12 22:40:46 -08:00
emacs/mps/procedure/release-build/index.html
Gareth Rees 675af3871f References and history entry.
Copied from Perforce
 Change: 181197
 ServerID: perforce.ravenbrook.com
2013-03-20 20:02:51 +00:00

405 lines
12 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Memory Pool System Release Build Procedure</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#000099" vlink="#660066" alink="#FF0000">
<div align="center">
<p>
<a href="/">Ravenbrook</a> /
<a href="/project/">Projects</a> /
<a href="/project/mps/">Memory Pool System</a> /
<a href="/project/mps/master/">Master Product Sources</a> /
<a href="/project/mps/master/procedure/">Procedures</a>
</p>
<p><i><a href="/project/mps/">Memory Pool System Project</a></i></p>
<hr />
<h1>Memory Pool System Release Build Procedure</h1>
<address>
<a href="mailto:rb@ravenbrook.com">Richard Brooksby</a>,
<a href="http://www.ravenbrook.com/">Ravenbrook Limited</a>,
2002-06-17
</address>
</div>
<h2><a id="section-1" name="section-1">1. Introduction</a></h2>
<p> This is the procedure for building a generic release of the Memory
Pool System (an “MPS Kit”) from the version sources. </p>
<p> The intended readership of this document is Ravenbrook development
staff. (If you are a user of the MPS, and want to build object code
from an MPS Kit, please see the <code>readme.txt</code> file in the
kit.) </p>
<p> This document is not confidential. </p>
<p> All relative paths are relative to
<code>//info.ravenbrook.com/project/mps/</code>. </p>
<h2><a id="section-2" name="section-2">2. Procedure</a></h2>
<h3><a id="section-2.1" name="section-2.1">2.1. Setting up for release</a></h3>
<ol>
<li><p> Choose a <i>RELEASE</i> name of the form <i>VERSION.N</i> (for
example, 0.3.0), where <i>VERSION</i> is the number of the version
youre releasing, and <i>N</i> is the first unused release number
(starting at zero). Look in the index of releases
(<code>release/index.html</code>) for existing release numbers for
your version. </p> <blockquote> <code> VERSION=<i>VERSION</i> <br>
RELEASE=$VERSION.<i>N</i> </code> </blockquote> </li>
<li><p> Ensure that the HTML version of the manual is up to date on the version branch: </p> <blockquote> <code>pushd version/$VERSION/manual <br> make checkin <br> popd</code> </blockquote> <p> If this fails with the error <code>make: sphinx-build: No such file or directory</code> then you need to install the Sphinx documentation system [<a title="Sphinx: Python document generator" href="http://sphinx-doc.org/">2</a>] and its dependencies (version 1.1.3 or later). On OS X with MacPorts you can install it like this: </p> <blockquote> <code> sudo port install py27-sphinx <br> sudo port select --set sphinx py27-sphinx </code> </blockquote> </li>
<li><p> Ensure that <code>version/$VERSION/readme.txt</code>
contains an up-to-date description of the release you intend to build
and the correct release name. </p> </li>
<li><p> In <code>version/$VERSION/code/version.c</code>,
set <code>MPS_RELEASE</code> to the correct value (see the rules in
the comments), and check strings that contain copyright dates,
etc. </p> </li>
<li><p> <strong>Submit <code>readme.txt</code>,
<code>version.c</code>, and other changed files to Perforce before you
continue.</strong> </p></li>
<li><p> Determine the <i>CHANGELEVEL</i> at which youre going to make
the release. This will usually be the latest submitted changelevel on
the version branch; to get it, use <code>p4 changes</code> with a max
of 1 (one):</p> <blockquote> <code>CHANGELEVEL=$(p4 changes -m 1
version/$VERSION/... | cut -d' ' -f2)</code> </blockquote> </li>
</ol>
<h3><a id="section-2.2" name="section-2.2">2.2. Pre-release testing</a></h3>
<ol>
<li>
<p> Sync the version sources to precisely the <i>CHANGELEVEL</i> you
determined in step 2.1.1, with no extraneous files, by using the
following procedure: </p>
<blockquote> <code>
# (you may wish to check for opened files first)<br />
p4 revert version/$VERSION/...<br />
rm -rf version/$VERSION <br />
p4 sync -f version/$VERSION/...@$CHANGELEVEL
</code> </blockquote>
<p> Note: <code>revert</code> and <code>sync -f</code> are required, otherwise p4-opened or forced-writeable files may remain or be omitted; see [<a href="#ref-1">1</a>]. </p>
</li>
<li><p> Run the test suite: </p> <blockquote> <code> (cd version/$VERSION && ./configure && make test) </code> </blockquote> <p> Check that the test suite passes. </li>
</ol>
<h3><a id="section-2.3" name="section-2.3">2.3. MPS Kit Tarball and Zip file</a></h3>
<p> On a Unix box: </p>
<ol>
<li>
<p> Sync the version sources to <i>CHANGELEVEL</i> by repeating the
procedure from step 2.2.1: </p>
<blockquote> <code>
p4 revert version/$VERSION/...<br />
rm -rf version/$VERSION <br />
p4 sync -f version/$VERSION/...@$CHANGELEVEL
</code> </blockquote>
</li>
<li>
<p> Create a tarball and a zip file containing the MPS sources, and
open it for add: </p>
<blockquote><code>
KIT=mps-kit-$RELEASE <br />
cp -R version/$VERSION $KIT <br />
mkdir -p release/$RELEASE<br />
tar cf - $KIT | gzip -c &gt; release/$RELEASE/$KIT.tar.gz <br />
zip -r release/$RELEASE/$KIT.zip $KIT <br/>
rm -r $KIT <br />
p4 add release/$RELEASE/$KIT.tar.gz <br/>
p4 add release/$RELEASE/$KIT.zip
</code></blockquote>
</li>
<li> <p> Submit the release files to Perforce with the comment “MPS:
adding the MPS Kit tarball and zip file for
release <i>RELEASE</i>.” </p> </li>
</ol>
<h3><a id="section-2.4" name="section-2.4">2.4. Registering the release</a></h3>
<ol>
<li><p> Edit the index of releases (<code>release/index.html</code>)
and add the release to the table, in a manner consistent with previous
releases. </p></li>
<li><p> Edit the index of versions (<code>version/index.html</code>)
and add the release to the list of releases for <i>VERSION</i>, in a
manner consistent with previous releases. </p></li>
<li><p> Submit these changes with the comment “MPS: registered release
<i>RELEASE</i>.” </p></li>
<li>
<p>
Edit the main MPS Project index page (<code>index.html</code>),
to refer to the new release:
</p>
<ul>
<li> update links to “the latest release” or “download” (important);
</li>
<li> consider updating the “project status” section. </li>
</ul>
</li>
<li><p> Visit
the <a href="http://info.ravenbrook.com/infosys/cgi/data_update.cgi">project
updater</a>, select “mps” from the dropdown, and hit “Find
releases”. </p></li>
<li><p> Inform the project manager and staff by e-mail
to <a href="mailto:mps-staff@ravenbrook.com">mps-staff@ravenbrook.com</a>.
Consider announcing the new release by e-mail
to <a href="mailto:mps-discussion@ravenbrook.com">mps-discussion@ravenbrook.com</a>. </p></li>
</ol>
<h2><a id="section-A" name="section-A">A. References</a></h2>
<table>
<tr valign="top">
<td>[<a id="ref-1" name="ref-1" href="http://info.ravenbrook.com/mail/2008/10/16/13-08-20/0.txt">1</a>]</td>
<td>
“revert ; rm ; sync -f”;
RHSK;
&lt;<a href="http://info.ravenbrook.com/mail/2008/10/16/13-08-20/0.txt">http://info.ravenbrook.com/mail/2008/10/16/13-08-20/0.txt</a>&gt;;
2008-10-16.
</td>
</tr>
<tr valign="top">
<td>[<a id="ref-2" name="ref-2" href="http://sphinx-doc.org/">2</a>]</td>
<td>
"Sphinx: Python document generator";
&lt;<a href="http://sphinx-doc.org/">http://sphinx-doc.org/</a>&gt;.
</td>
</tr>
</table>
<!-- Template Entry
<tr valign="top">
<td>[<a id="ref-#REF#" name="ref-#REF#" href="#REF_URL#">#REF_NAME#</a>]</td>
<td>
“#REF_TITLE#”;
#REF_AUTHOR#;
&lt;URL: <a href="#REF_URL#">#REF_URL#</a>&gt;;
#REF_DATE#.
</td>
</tr>
-->
<h2><a id="section-B" name="section-B">B. Document History</a></h2>
<table>
<tr valign="top">
<td>2002-06-17</td>
<td><a href="mailto:rb@ravenbrook.com">RB</a></td>
<td>Created based on P4DTI procedure.</td>
</tr>
<tr valign="top">
<td>2002-06-19</td>
<td><a href="mailto:nb@ravenbrook.com">NB</a></td>
<td>Fixed up based on experience of release 1.100.0.</td>
</tr>
<tr valign="top">
<td>2004-03-03</td>
<td><a href="mailto:rb@ravenbrook.com">RB</a></td>
<td>Fixed the way we determine the release changelevel to avoid possible pending changelists.</td>
</tr>
<tr valign="top">
<td>2005-10-06</td>
<td><a href="mailto:rhsk@ravenbrook.com">RHSK</a></td>
<td>Clarify this procedure is for general MPS Kit releases; correct <code>cp -r</code> to <code>-R</code>. Add: check <code>version.c</code>.</td>
</tr>
<tr valign="top">
<td>2006-01-19</td>
<td><a href="mailto:rhsk@ravenbrook.com">RHSK</a></td>
<td>Correct readership statement, and direct MPS users to the mps-kit readme.</td>
</tr>
<tr valign="top">
<td>2006-02-16</td>
<td><a href="mailto:rhsk@ravenbrook.com">RHSK</a></td>
<td>Use Info-ZIP (free) for Windows archives, not WinZip.</td>
</tr>
<tr valign="top">
<td>2007-07-05</td>
<td><a href="mailto:rhsk@ravenbrook.com">RHSK</a></td>
<td>Releasename now also in <code>w3build.bat</code>.</td>
</tr>
<tr valign="top">
<td>2008-01-07</td>
<td><a href="mailto:rhsk@ravenbrook.com">RHSK</a></td>
<td>Release changelevel was in <code>issue.cgi</code>, now in <code>data.py</code>.</td>
</tr>
<tr valign="top">
<td>2010&#x2011;10&#x2011;06</td>
<td><a href="mailto:gdr@ravenbrook.com">GDR</a></td>
<td>Use the project updater to register new releases.</td>
</tr>
<tr valign="top">
<td>2012&#x2011;09&#x2011;13</td>
<td><a href="mailto:rb@ravenbrook.com">RB</a></td>
<td> Dont copy the readme.txt to the release directory, since it no longer has that dual role; make the zip file on a Unix box with the zip utility, since compatibility has improved. </td>
</tr>
<tr valign="top">
<td>2013-03-08</td>
<td><a href="mailto:gdr@ravenbrook.com">GDR</a></td>
<td>Add testing step (§2.2).</td>
</tr>
<tr valign="top">
<td>2013-03-20</td>
<td><a href="mailto:gdr@ravenbrook.com">GDR</a></td>
<td>Ensure that manual HTML is up to date before making a release.</td>
</tr>
</table>
<h2><a id="section-C" name="section-C">C. Copyright and License</a></h2>
<p> This document is copyright &copy; 20022013 <a href="http://www.ravenbrook.com/">Ravenbrook Limited</a>. All rights reserved. This is an open source license. Contact Ravenbrook for commercial licensing options. </p>
<p> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: </p>
<ol>
<li> Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. </li>
<li> Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. </li>
<li> Redistributions in any form must be accompanied by information on how to obtain complete source code for the this software and any accompanying software that uses this software. The source code must either be included in the distribution or be available for no more than the cost of distribution plus a nominal fee, and must be freely redistributable under reasonable conditions. For an executable file, complete source code means the source code for all modules it contains. It does not include source code for modules or files that typically accompany the major components of the operating system on which the executable file runs. </li>
</ol>
<p> <strong> This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement, are disclaimed. In no event shall the copyright holders and contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage. </strong> </p>
<hr />
<div align="center">
<p><code>$Id$</code></p>
<p>
<a href="/">Ravenbrook</a> /
<a href="/project/">Projects</a> /
<a href="/project/mps/">Memory Pool System</a> /
<a href="/project/mps/master/">Master Product Sources</a> /
<a href="/project/mps/master/procedure/">Procedures</a>
</p>
</div>
</body>
</html>