<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta name="robots" content="index,follow"/> <title>Make a new release</title> <link rel="shortcut icon" href="favicon.ico"> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="stdair.css" rel="stylesheet" type="text/css"/> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-24867310-1']); _gaq.push(['_setDomainName', 'none']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> </head> <body> <div id="top"><!-- do not remove this div! --> <div id="titlearea"> <table width="100%"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname"><a href="http://stdair.sourceforge.net"><img height="45px" alt="StdAir Logo" src="stdair_logo.png"></a>  <span id="projectnumber">1.00.1</span> </div> <div id="projectbrief">C++ Standard Airline IT Object Library</div> </td> <!-- begin SOURCEFORGE_CUSTOM--> <td> <div id="sflogo"><a href="http://stdair.sourceforge.net"><img height="45px" alt="SourceForge Logo" src="sfx_logo.png"></a></div> </td> <!-- end SOURCEFORGE_CUSTOM--> </tr> </tbody> </table> </div> <!-- Generated by Doxygen 1.8.3.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('a00012.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">Make a new release </div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><h1><a class="anchor" id="description"></a> Introduction</h1> <p>This document describes briefly the recommended procedure of releasing a new version of StdAir using a Linux development machine and the SourceForge project site.</p> <p>The following steps are required to make a release of the distribution package.</p> <h1><a class="anchor" id="initialisation"></a> Initialisation</h1> <p>Clone locally the full <a href="http://stdair.git.sourceforge.net/git/gitweb.cgi?p=stdair/stdair;a=tree;h=refs/heads/trunk;hb=trunk">Git project</a>: </p> <pre class="fragment">cd ~ mkdir -p dev/sim cd ~/dev/sim git clone git://stdair.git.sourceforge.net/gitroot/stdair/stdair stdairgit cd stdairgit git checkout trunk </pre><h1><a class="anchor" id="branch_creation"></a> Branch creation</h1> <p>Create the branch, on your local clone, corresponding to the new release (say, 0.5.0): </p> <pre class="fragment">cd ~/dev/sim/stdairgit git checkout trunk git checkout -b 0.5.0 </pre><p> Update the version in the various build system files, replacing 99.99.99 by the correct version number: </p> <pre class="fragment">vi CMakeLists.txt vi autogen.sh </pre><p>Update the version and add a change-log in the ChangeLog and in the RPM specification files: </p> <pre class="fragment">vi ChangeLog vi stdair.spec </pre><h1><a class="anchor" id="branch_publish"></a> Commit and publish the release branch</h1> <p>Commit the new release: </p> <pre class="fragment">cd ~/dev/sim/stdairgit git add -A git commit -m "[Release 0.5.0] Release of version 0.5.0." git push </pre><h1><a class="anchor" id="trunk_update"></a> Update the change-log in the trunk as well</h1> <p>Update the change-log in the ChangeLog and RPM specification files: </p> <pre class="fragment">cd ~/dev/sim/stdairgit git checkout trunk vi ChangeLog vi stdair.spec </pre><p>Commit the change-logs and publish the trunk (main development branch): </p> <pre class="fragment">git commit -m "[Doc] Integrated the change-log of the release 0.5.0." git push </pre><h1><a class="anchor" id="create_packages"></a> Create distribution packages</h1> <p>Create the distribution packages using the following command:<br/> </p> <pre class="fragment">cd ~/dev/sim/stdairgit git checkout 0.5.0 rm -rf build && mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=/home/user/dev/deliveries/stdair-0.5.0 \ -DCMAKE_BUILD_TYPE:STRING=Debug -DINSTALL_DOC:BOOL=ON .. make check && make dist </pre><p>This will configure, compile and check the package. The output packages will be named, for instance, <code>stdair-0.5.0.tar.gz</code> and <code>stdair-0.5.0.tar.bz2</code>.</p> <h1><a class="anchor" id="generate_rpm_packages"></a> Generation the RPM packages</h1> <p>Optionally, generate the RPM package (for instance, for <a href="http://fedoraproject.org">Fedora</a>/<a href="http://www.redhat.com">RedHat</a>): </p> <pre class="fragment">cd ~/dev/sim/stdairgit git checkout 0.5.0 rm -rf build && mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=/home/user/dev/deliveries/stdair-99.99.99 \ -DCMAKE_BUILD_TYPE:STRING=Debug -DINSTALL_DOC:BOOL=ON .. make dist </pre><p>To perform this step, rpm-build, rpmlint and rpmdevtools have to be available on the system. </p> <pre class="fragment">cp stdair.spec ~/dev/packages/SPECS \ && cp stdair-0.5.0.tar.bz2 ~/dev/packages/SOURCES cd ~/dev/packages/SPECS rpmbuild -ba stdair.spec rpmlint -i ../SPECS/stdair.spec ../SRPMS/stdair-0.5.0-1.fc15.src.rpm \ ../RPMS/noarch/stdair-* ../RPMS/i686/stdair-* </pre><h1><a class="anchor" id="update_changelog"></a> Update distributed change log</h1> <p>Update the <code>NEWS</code> and <code>ChangeLog</code> files with appropriate information, including what has changed since the previous release. Then commit and push the changes into the <a href="http://stdair.git.sourceforge.net/git/gitweb.cgi?p=stdair/stdair;a=summary">StdAir's Git repository</a>.</p> <h1><a class="anchor" id="create_bin_packages"></a> Create the binary package, including the documentation</h1> <p>Create the binary package, which includes HTML and PDF documentation, using the following command: </p> <pre class="fragment">make package </pre><p>The output binary package will be named, for instance, <code>stdair-0.5.0-Linux.tar.bz2</code>. That package contains both the HTML and PDF documentation. The binary package contains also the executables and shared libraries, as well as C++ header files, but all of those do not interest us for now.</p> <h1><a class="anchor" id="upload_files"></a> Upload the files to SourceForge</h1> <p>Upload the distribution and documentation packages to the SourceForge server. Check <a href="https://sourceforge.net/apps/trac/sourceforge/wiki/Release%20files%20for%20download#SCP">SourceForge help page on uploading software</a>.</p> <h1><a class="anchor" id="upload_doc"></a> Upload the documentation to SourceForge</h1> <p>In order to update the Web site files, either:</p> <ul> <li><a href="https://sourceforge.net/apps/trac/sourceforge/wiki/Shell%20service#Accessingyourfileswithothertools">synchronise them with rsync and SSH</a>: <pre class="fragment">cd ~/dev/sim/stdairgit git checkout 0.5.0 rsync -aiv doc/html/ doc/latex/refman.pdf joe,stdair@web.sourceforge.net:htdocs/ </pre> where <code>-aiv</code> options mean:<ul> <li><code>-a</code>: archive/mirror mode; equals <code>-rlptgoD</code> (no <code>-H</code>, <code>-A</code>, <code>-X</code>)</li> <li><code>-v</code>: increase verbosity</li> <li><code>-i</code>: output a change-summary for all updates</li> <li>Note the trailing slashes (/) at the end of both the source and target directories. It means that the content of the source directory (<code>doc/html</code>), rather than the directory itself, has to be copied into the content of the target directory.</li> </ul> </li> <li>or use the <a href="https://sourceforge.net/apps/trac/sourceforge/wiki/Shell%20service">SourceForge Shell service</a>.</li> </ul> <h1><a class="anchor" id="post_news"></a> Make a new post</h1> <ul> <li>submit a new entry in the <a href="https://sourceforge.net/news/submit.php?group_id=267760">SourceForge project-related news feed</a></li> <li>make a new post on the <a href="https://sourceforge.net/apps/wordpress/stdair/wp-admin/">SourceForge hosted WordPress blog</a></li> <li>and update, if necessary, <a href="https://sourceforge.net/apps/trac/stdair/report">Trac tickets</a>.</li> </ul> <h1><a class="anchor" id="send_announce"></a> Send an email on the announcement mailing-list</h1> <p>Finally, you should send an announcement to <a href="#" onclick="location.href='mai'+'lto:'+'std'+'ai'+'r-a'+'nn'+'oun'+'ce'+'@li'+'st'+'s.s'+'ou'+'rce'+'fo'+'rge'+'.n'+'et'; return false;">stdair-announce@lists.sourceforge.net</a> (see <a href="https://lists.sourceforge.net/lists/listinfo/stdair-announce">https://lists.sourceforge.net/lists/listinfo/stdair-announce</a> for the archives) </p> </div></div><!-- contents --> </div><!-- doc-content --> <li class="footer">Generated on Wed May 22 2013 10:51:59 for StdAir by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3.1 </li> <li class="footer"> <a href="http://sourceforge.net/projects/stdair"><img class="footer" src="http://sflogo.sourceforge.net/sflogo.php?group_id=267760&type=12&format=.png" alt="SourceForge Logo"></a> </li> </ul> </div> </body> </html>