#!/bin/sh # Consolidate font info spread over many generated files [ -s "$1" -a -r "$1" ] && rpminfo=$(cat "$1") || rpminfo="||||||" [ -s "$2" -a -r "$2" ] && rpmlint_score=$(cat "$2") size=$(du -b "$3" | cut -f 1) checksum=$(sha256sum "$3" | cut -d " " -f 1) if [ -s "$4" -a -r "$4" ] ; then file=$(cut -d "|" -f 1 < "$4") type=$(cut -d "|" -f 2 < "$4") fi fontlint=$(filter-fontlint < "$5" | wc -l) partial_blocks=$(filter-unicover < $6 | wc -l) if [ -s "$7" -a -r "$7" ] ; then family=$(cat "$7" | cut -d "|" -f 1) style=$(cat "$7" | cut -d "|" -f 2) format=$(cat "$7" | cut -d "|" -f 3) fi partial_scripts=$(filter-langcover < "$8" | wc -l) if [ "$family" != "" -o "$style" != "" ] ; then fnaming=$(fix-font-naming "$family" "$style") ffamily=$(echo "$fnaming" | cut -f 1) fstyle=$(echo "$fnaming" | cut -f 2) fi echo "$rpminfo|$rpmlint_score|$file|$family|$style|$ffamily|$fstyle|$format|\ $type|$size|$checksum|$partial_scripts|$partial_blocks|$fontlint"