I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 17e47a0c authored by zzz's avatar zzz
Browse files

Build: revisions target for git

parent 2ffb5708
No related branches found
No related tags found
No related merge requests found
...@@ -543,7 +543,7 @@ ...@@ -543,7 +543,7 @@
</exec> </exec>
</target> </target>
<target name="revisions" depends="getReleaseNumber, getBuildNumber, failIfNoMtn"> <target name="revisionsMtn" depends="checkForMtn, getReleaseNumber, getBuildNumber" if="mtn.available">
<!-- mtn log __brief __no-graph __to t:i2p-0.9.xx | cut -d ' ' -f 2 | sort | uniq -c | sort -rn --> <!-- mtn log __brief __no-graph __to t:i2p-0.9.xx | cut -d ' ' -f 2 | sort | uniq -c | sort -rn -->
<exec executable="mtn" outputproperty="getrevisions1" errorproperty="reverror1" failifexecutionfails="true" > <exec executable="mtn" outputproperty="getrevisions1" errorproperty="reverror1" failifexecutionfails="true" >
<arg value="log" /> <arg value="log" />
...@@ -611,6 +611,34 @@ ...@@ -611,6 +611,34 @@
</exec> </exec>
</target> </target>
<target name="revisionsGit" depends="checkForGit, getReleaseNumber, getBuildNumber" if="git.available" unless="mtn.available">
<!-- git log i2p-0.9.xx | grep '^Author:' | cut -d ' ' -f 2- | sort | uniq -c | sort -rn -->
<exec executable="git" outputproperty="getrevisions1" errorproperty="reverror1" failifexecutionfails="true" >
<arg value="log" />
<arg value="i2p-${release.number}..HEAD" />
</exec>
<exec executable="grep" inputstring="${getrevisions1}" outputproperty="getrevisions2" failifexecutionfails="true" >
<arg value="^Author:" />
</exec>
<exec executable="cut" inputstring="${getrevisions2}" outputproperty="getrevisions3" failifexecutionfails="true" >
<arg value="-d" />
<arg value=" " />
<arg value="-f" />
<arg value="2-" />
</exec>
<exec executable="sort" inputstring="${getrevisions3}" outputproperty="getrevisions4" failifexecutionfails="true" >
</exec>
<exec executable="uniq" inputstring="${getrevisions4}" outputproperty="getrevisions5" failifexecutionfails="true" >
<arg value="-c" />
</exec>
<exec executable="sort" inputstring="${getrevisions5}" outputproperty="getrevisions6" failifexecutionfails="true" >
<arg value="-rn" />
</exec>
<echo message="Revisions since ${release.number}:" />
<echo message="${getrevisions6}" />
</target>
<!-- end git targets --> <!-- end git targets -->
...@@ -656,6 +684,9 @@ ...@@ -656,6 +684,9 @@
<!-- if both present, only mtn will run --> <!-- if both present, only mtn will run -->
<target name="checkoutFromVCS" depends="failIfNoVCS, checkoutFromMtn, checkoutFromGit" /> <target name="checkoutFromVCS" depends="failIfNoVCS, checkoutFromMtn, checkoutFromGit" />
<!-- if both present, only mtn will run -->
<target name="revisions" depends="failIfNoVCS, revisionsMtn, revisionsGit" />
<!-- end combined mtn/git targets --> <!-- end combined mtn/git targets -->
<!-- launch4j targets --> <!-- launch4j targets -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment