<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2176/25/9/_/styles/combined.css?spaceKey=AST&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/AST/Repotools">Repotools</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://wiki.asterisk.org/wiki/display/~jrose">Jonathan Rose</a>
    </h4>
        <br/>
                         <h4>Changes (10)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >installed trivially with apt-get (usually with default repositories) <br> <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">$ sudo apt-get install expect <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">{newcode:language=none}$ sudo apt-get install expect{newcode} <br></td></tr>
            <tr><td class="diff-unchanged" > <br>Once expect is installed, the mergetools can be installed with the following steps: <br> <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">$</span> <span class="diff-added-words"style="background-color: #dfd;">{newcode:language=none}$</span> svn co http://svn.asterisk.org/svn/repotools <br></td></tr>
            <tr><td class="diff-unchanged" >$ cd repotools <br>$ ./configure <br></td></tr>
            <tr><td class="diff-changed-lines" >$ sudo make <span class="diff-changed-words">install<span class="diff-added-chars"style="background-color: #dfd;">{newcode}</span></span> <br></td></tr>
            <tr><td class="diff-unchanged" > <br>h1. Other Requirements <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >basically a python-specific package manager. Like expect, it is usually obtainable through default repositories if you use Ubuntu or Debian. <br> <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">$ sudo apt-get install python-pip <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">{newcode:language=none}$ sudo apt-get install python-pip{newcode} <br></td></tr>
            <tr><td class="diff-unchanged" > <br>Once pip is installed, installing jira-python is simple (and similar) <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">$ sudo pip install jira-python <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">{newcode:language=none}$ sudo pip install jira-python{newcode} <br></td></tr>
            <tr><td class="diff-unchanged" > <br>h2. pysvn, diffstat, and links2 <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >your default package manager is usually simplest. Ubuntu/Debian example: <br> <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">$ sudo apt-get install python-svn diffstat links2 <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">{newcode:language=none}$ sudo apt-get install python-svn diffstat links2{newcode} <br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h1><a name="Repotools-MergeTools"></a>Merge Tools</h1>

<p>The repotools Makefile installs the merge tools which are useful for simplifying the merging process for commits to Asterisk's various branches.<br/>
Installation requires that you have repotools checked out (or otherwise available) and that you have expect. On Ubuntu/Debian, expect can be<br/>
installed trivially with apt-get (usually with default repositories)</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: plain; gutter: false">$ sudo apt-get install expect</pre>
</div></div>

<p>Once expect is installed, the mergetools can be installed with the following steps:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: plain; gutter: false">$ svn co http://svn.asterisk.org/svn/repotools
$ cd repotools
$ ./configure
$ sudo make install</pre>
</div></div>

<h1><a name="Repotools-OtherRequirements"></a>Other Requirements</h1>

<p>In addition to the mergetools, there are a number of scripts in repotools that we use for a variety of purposes. Some examples are automated<br/>
commit message template generators, an IRC bot that reacts to JIRA issue names and spits out descriptions, and a tool for generated release<br/>
notes. Some of these tools require some additional dependencies.</p>

<h2><a name="Repotools-jirapython"></a>jira-python</h2>

<p>Scripts that retrieve issue information from JIRA now require the jira-python module. This is most easily obtained by using pip, which is<br/>
basically a python-specific package manager. Like expect, it is usually obtainable through default repositories if you use Ubuntu or Debian.</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: plain; gutter: false">$ sudo apt-get install python-pip</pre>
</div></div>

<p>Once pip is installed, installing jira-python is simple (and similar)</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: plain; gutter: false">$ sudo pip install jira-python</pre>
</div></div>

<h2><a name="Repotools-pysvn%2Cdiffstat%2Candlinks2"></a>pysvn, diffstat, and links2</h2>

<p>If you want to run the release summary building script, these tools are necessary. Like with most tools mentioned here, getting them with<br/>
your default package manager is usually simplest. Ubuntu/Debian example:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: plain; gutter: false">$ sudo apt-get install python-svn diffstat links2</pre>
</div></div>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;" class="grey">
                        <a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
        <a href="https://wiki.asterisk.org/wiki/display/AST/Repotools">View Online</a>
        |
        <a href="https://wiki.asterisk.org/wiki/pages/diffpagesbyversion.action?pageId=22085730&revisedVersion=2&originalVersion=1">View Changes</a>
                |
        <a href="https://wiki.asterisk.org/wiki/display/AST/Repotools?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>