Added yarp.pl - (Yet Another Raptor Parser) and dump_recipe_at_line.pl
Usage for yarp.pl:
perl yarp.pl <compile_log> <output_csv>
Usage for dump_recipe_at_line.pl:
perl dump_recipe_at_line.pl <compile_log> <line|line_list_file>
The idea of dump_recipe_at_line.pl is so you can take a column of line numbers from the CSV created by yarp and see what happened (without having to open the 300MB file)
with a single column:
...
226242
...
you get:
...
226242 <recipe name blah blah blah...
...
With two columns in the file, you can have some more readable output:
...
226242 m:/sf/mw/classicui/group/bld.inf
...
you get:
...
m:/sf/mw/classicui/group/bld.inf(226242): <recipe name blah blah blah...
...
<?xml version="1.0"?>
<project name="hg-prep" default="all" xmlns:hlm="http://www.nokia.com/helium">
<property environment="env"/>
<taskdef name="scm" classname="com.nokia.helium.scm.ant.taskdefs.ScmTask" uri="http://www.nokia.com/helium" />
<typedef name="latestTag" classname="com.nokia.helium.scm.ant.types.LatestTag" uri="http://www.nokia.com/helium" />
<typedef name="tagSet" classname="com.nokia.helium.scm.ant.types.TagSet" uri="http://www.nokia.com/helium" />
<target name="all">
<parallel threadCount="${ant['threads']}">
<#assign refid=0/>
<#list data as d>
<sequential>
<delete dir="${ant['build.drive']}${d.dst}" failonerror="false"/>
<mkdir dir="${ant['build.drive']}${d.dst}"/>
<hlm:scm verbose="true" scmUrl="scm:hg:${d.source}">
<hlm:checkout basedir="${ant['build.drive']}${d.dst}"/>
<hlm:tags basedir="${ant['build.drive']}${d.dst}" reference="hg.tags.id${refid}"/>
<hlm:update basedir="${ant['build.drive']}${d.dst}">
<hlm:latestTag pattern="${d.tag}">
<hlm:tagSet refid="hg.tags.id${refid}" />
</hlm:latestTag>
</hlm:update>
</hlm:scm>
</sequential>
<#assign refid=refid + 1/>
</#list>
</parallel>
</target>
<import file="${ant['helium.dir']}/helium.ant.xml"/>
</project>