<!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/html; charset=utf-8" /> <title>プロジェクトをリリースする — Bazaar 2.6.0 documentation</title> <link rel="stylesheet" href="../_static/default.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '2.6.0', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/translations.js"></script> <link rel="shortcut icon" href="../_static/bzr.ico"/> <link rel="top" title="Bazaar 2.6.0 documentation" href="../index.html" /> <link rel="up" title="Bazaarユーザーガイド" href="index.html" /> <link rel="next" title="間違いを取り消す" href="undoing_mistakes.html" /> <link rel="prev" title="履歴を閲覧する" href="browsing_history.html" /> </head> <body> <div class="related"> <h3>ナビゲーション</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="undoing_mistakes.html" title="間違いを取り消す" accesskey="N">次へ</a></li> <li class="right" > <a href="browsing_history.html" title="履歴を閲覧する" accesskey="P">前へ</a> |</li> <li><a href="../index.html">目次 (2.6.0)</a> »</li> <li><a href="index.html" accesskey="U">Bazaarユーザーガイド</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="id1"> <h1>プロジェクトをリリースする<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h1> <div class="section" id="id2"> <h2>リリースをパッケージ化する<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2> <p><tt class="docutils literal"><span class="pre">export</span></tt> コマンドはリリースのパッケージを作成するために使われます。 すなわち、ブランチの中のファイルとディレクトリをコピーしてそれらを真新しいディレクトリもしくはアーカイブファイルのパッケージを作成します。 たとえば、このコマンドは最後にコミットされたバージョンを <tt class="docutils literal"><span class="pre">tar.gz</span></tt> アーカイブファイルにパッケージ化します:</p> <div class="highlight-python"><pre>bzr export ../releases/my-stuff-1.5.tar.gz</pre> </div> <p><tt class="docutils literal"><span class="pre">export</span></tt> コマンドは下記に示されるアーカイブのタイプを作るためにアーカイブファイルの接尾辞を使います。</p> <blockquote> <div><table border="1" class="docutils"> <colgroup> <col width="58%" /> <col width="42%" /> </colgroup> <thead valign="bottom"> <tr class="row-odd"><th class="head">サポートされるフォーマット</th> <th class="head">拡張子で自動検出</th> </tr> </thead> <tbody valign="top"> <tr class="row-even"><td>dir</td> <td>(none)</td> </tr> <tr class="row-odd"><td>tar</td> <td>.tar</td> </tr> <tr class="row-even"><td>tbz2</td> <td>.tar.bz2, .tbz2</td> </tr> <tr class="row-odd"><td>tgz</td> <td>.tar.gz, .tgz</td> </tr> <tr class="row-even"><td>zip</td> <td>.zip</td> </tr> </tbody> </table> </div></blockquote> <p>最新のリビジョン以外のリビジョンをパッケージにすることを望むのであれば、 <tt class="docutils literal"><span class="pre">-r</span></tt> オプションを使います。 アーカイブ内部のrootディレクトリを調整したいのであれば、 <tt class="docutils literal"><span class="pre">--root</span></tt> オプションを使います。 <tt class="docutils literal"><span class="pre">export</span></tt> によってサポートされるオプションの詳細については オンラインヘルプもしくはユーザーリファレンスを参照してください。</p> </div> <div class="section" id="id3"> <h2>リリースをタギングする<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2> <p>リリースのパッケージを作成するために使われたバージョンを覚えるよりも、 <tt class="docutils literal"><span class="pre">tag</span></tt> コマンドを使ってバージョンのためのシンボルを定義する方が便利です:</p> <div class="highlight-python"><pre>bzr tag version-1-5</pre> </div> <p>リビジョンの識別子が必要なときはいつでもそのタグを使うことができます:</p> <div class="highlight-python"><pre>bzr diff -r tag:version-1-5</pre> </div> <p>ブランチの中で定義したタグの一覧を見たい場合、 <tt class="docutils literal"><span class="pre">tags</span></tt> コマンドを使います。</p> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="../index.html">目次</a></h3> <ul> <li><a class="reference internal" href="#">プロジェクトをリリースする</a><ul> <li><a class="reference internal" href="#id2">リリースをパッケージ化する</a></li> <li><a class="reference internal" href="#id3">リリースをタギングする</a></li> </ul> </li> </ul> <h4>前のトピックへ</h4> <p class="topless"><a href="browsing_history.html" title="前の章へ">履歴を閲覧する</a></p> <h4>次のトピックへ</h4> <p class="topless"><a href="undoing_mistakes.html" title="次の章へ">間違いを取り消す</a></p> <h3>このページ</h3> <ul class="this-page-menu"> <li><a href="../_sources/user-guide/releasing_a_project.txt" rel="nofollow">ソースコードを表示</a></li> </ul> <div id="searchbox" style="display: none"> <h3>クイック検索</h3> <form class="search" action="../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="検索" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> モジュール、クラス、または関数名を入力してください </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>ナビゲーション</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="undoing_mistakes.html" title="間違いを取り消す" >次へ</a></li> <li class="right" > <a href="browsing_history.html" title="履歴を閲覧する" >前へ</a> |</li> <li><a href="../index.html">目次 (2.6.0)</a> »</li> <li><a href="index.html" >Bazaarユーザーガイド</a> »</li> </ul> </div> <div class="footer"> © Copyright 2009-2011 Canonical Ltd. このドキュメントは <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3 で生成しました。 </div> </body> </html>