Commit a1424337 authored by Anthony LICK's avatar Anthony LICK

Merge branch 'master' of https://git.lsv.fr/schmitz/xpparser

parents 21e0b6d2 0128267e
...@@ -45,7 +45,7 @@ This buildfile is used to retrieve and parse XPath expressions from various sour ...@@ -45,7 +45,7 @@ This buildfile is used to retrieve and parse XPath expressions from various sour
</java> </java>
<copy unless:blank="@{license}" <copy unless:blank="@{license}"
file="@{name}/@{license}" tofile="@{name}.LICENSE"/> file="@{name}/@{license}" tofile="@{name}.LICENSE"/>
<xslt style="../xslt/filter-axis-step.xsl" <!-- xslt style="../xslt/filter-axis-step.xsl"
in="@{name}-full.xml" in="@{name}-full.xml"
out="@{name}-axis-step.xml"> out="@{name}-axis-step.xml">
<classpath> <classpath>
...@@ -58,7 +58,7 @@ This buildfile is used to retrieve and parse XPath expressions from various sour ...@@ -58,7 +58,7 @@ This buildfile is used to retrieve and parse XPath expressions from various sour
<classpath> <classpath>
<pathelement path="../lib/saxon9he.jar"/> <pathelement path="../lib/saxon9he.jar"/>
</classpath> </classpath>
</xslt> </xslt -->
</sequential> </sequential>
</macrodef> </macrodef>
...@@ -148,8 +148,8 @@ This buildfile is used to retrieve and parse XPath expressions from various sour ...@@ -148,8 +148,8 @@ This buildfile is used to retrieve and parse XPath expressions from various sour
<!-- DocBook XSL --> <!-- DocBook XSL -->
<target name="docbook"> <target name="docbook">
<mkdir dir="docbook"/> <mkdir dir="docbook"/>
<get src="https://freefr.dl.sourceforge.net/project/docbook/docbook-xsl/1.79.1/docbook-xsl-1.79.1.tar.bz2" <!--get src="https://freefr.dl.sourceforge.net/project/docbook/docbook-xsl/1.79.1/docbook-xsl-1.79.1.tar.bz2"
dest="docbook/" usetimestamp="true"/> dest="docbook/" usetimestamp="true"/-->
<bunzip2 src="docbook/docbook-xsl-1.79.1.tar.bz2"/> <bunzip2 src="docbook/docbook-xsl-1.79.1.tar.bz2"/>
<untar src="docbook/docbook-xsl-1.79.1.tar" dest="docbook" <untar src="docbook/docbook-xsl-1.79.1.tar" dest="docbook"
overwrite="no"/> overwrite="no"/>
......
...@@ -275,6 +275,10 @@ open STD,">","countfuns_${suffix}_std.dat" ...@@ -275,6 +275,10 @@ open STD,">","countfuns_${suffix}_std.dat"
or die "Cannot open countfuns_${suffix}_std.dat!\n"; or die "Cannot open countfuns_${suffix}_std.dat!\n";
open NONSTD,">","countfuns_${suffix}_nonstd.dat" open NONSTD,">","countfuns_${suffix}_nonstd.dat"
or die "Cannot open countfuns_${suffix}_nonstd.dat!\n"; or die "Cannot open countfuns_${suffix}_nonstd.dat!\n";
open TOTAL,">","countfuns_${suffix}_total.tex"
or die "Cannot open countfuns_${suffix}_total.tex!\n";
open COV,">","countfuns_${suffix}_std_cov.tex"
or die "Cannot open countfuns_${suffix}_std_cov.tex!\n";
$n=0; # rank of current function (decr. order) $n=0; # rank of current function (decr. order)
$sofar=0; # total nb of occ. so far $sofar=0; # total nb of occ. so far
$sofar_std=0; # total nb of occ. of std funs so far $sofar_std=0; # total nb of occ. of std funs so far
...@@ -304,3 +308,5 @@ for $fname (sort { $table{$b} <=> $table{$a} } keys %table) { ...@@ -304,3 +308,5 @@ for $fname (sort { $table{$b} <=> $table{$a} } keys %table) {
print NONSTD "$n $table{$fname}\n"; print NONSTD "$n $table{$fname}\n";
} }
} }
$locale_nbfuns = reverse join ',', unpack '(A3)*', reverse $nbfuns;
print TOTAL ("$locale_nbfuns");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment