Changeset 841bb755


Ignore:
Timestamp:
Mar 18, 2018 12:35:54 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6908616
Parents:
ca312f5
Message:

Build: Add target to show revs since last release

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    rca312f5 r841bb755  
    507507        <replaceregexp byline="true" file="router/java/src/net/i2p/router/RouterVersion.java"
    508508            match='(^\s+public\s+final\s+static\s+long\s+BUILD\s+=\s+)[0-9]+;' replace='\1${new.i2p.build.number};'/>
     509    </target>
     510
     511    <target name="revisions" depends="getReleaseNumber, getBuildNumber">
     512        <!-- mtn log __brief __no-graph __to t:i2p-0.9.xx | cut -d ' ' -f 2 | sort | uniq -c | sort -rn -->
     513        <exec executable="mtn" outputproperty="getrevisions1" errorproperty="reverror1" failifexecutionfails="true" >
     514            <arg value="log" />
     515            <arg value="--brief" />
     516            <arg value="--no-graph" />
     517            <arg value="--to" />
     518            <arg value="t:i2p-${release.number}" />
     519        </exec>
     520        <exec executable="cut" inputstring="${getrevisions1}" outputproperty="getrevisions2" failifexecutionfails="true" >
     521            <arg value="-d" />
     522            <arg value=" " />
     523            <arg value="-f" />
     524            <arg value="2" />
     525        </exec>
     526        <exec executable="sort" inputstring="${getrevisions2}" outputproperty="getrevisions3" failifexecutionfails="true" >
     527        </exec>
     528        <exec executable="uniq" inputstring="${getrevisions3}" outputproperty="getrevisions4" failifexecutionfails="true" >
     529            <arg value="-c" />
     530        </exec>
     531        <exec executable="sort" inputstring="${getrevisions4}" outputproperty="getrevisions5" failifexecutionfails="true" >
     532            <arg value="-rn" />
     533        </exec>
     534        <echo message="Revisions since ${release.number}:" />
     535        <echo message="${getrevisions5}" />
    509536    </target>
    510537
  • installer/resources/checklist.md

    rca312f5 r841bb755  
    123123
    124124    ```
    125     mtn log --brief --no-graph --to t:i2p-0.9.(xx-1) | cut -d ' ' -f 2 | sort | uniq -c
     125    ant revisions
    126126    ```
    127127
Note: See TracChangeset for help on using the changeset viewer.