Commit db796c0b authored by Stefan Westerfeld's avatar Stefan Westerfeld

Fix gen-speed-adoc.sh generation for complete files (speed-full*).

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 2829b09b
...@@ -22,9 +22,9 @@ do ...@@ -22,9 +22,9 @@ do
do do
cat speed-$CLIP-$STRENGTH-* | awk '{bad += $1; n += $2} END {if (n==0) n=1;fer=100.0*bad/n; bold=fer>0?"*":" ";printf ("| %s%.2f%s", bold, fer, bold)}' cat speed-$CLIP-$STRENGTH-* | awk '{bad += $1; n += $2} END {if (n==0) n=1;fer=100.0*bad/n; bold=fer>0?"*":" ";printf ("| %s%.2f%s", bold, fer, bold)}'
done done
for FULL in speed-$STRENGTH-* for FULL in speed-full-$STRENGTH-*
do do
if [ "$(echo $FULL | tr -d a-z0-9)" == "--" ]; then if [ "$(echo $FULL | tr -d a-z0-9)" == "---" ]; then
cat $FULL cat $FULL
fi fi
done | awk '{bad += $1; n += $2} END {if (n==0) n=1;fer=100.0*bad/n; bold=fer>0?"*":" ";printf ("| %s%.2f%s", bold, fer, bold)}' done | awk '{bad += $1; n += $2} END {if (n==0) n=1;fer=100.0*bad/n; bold=fer>0?"*":" ";printf ("| %s%.2f%s", bold, fer, bold)}'
......
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