#! /bin/sh
#
#   fixchars -- BDFե CHARS 
#

temp=/tmp/bdf.$$
trap '/bin/rm -f $temp*; exit 1' 1 2 15

cat "$@" > $temp
chars=`grep 'STARTCHAR' < $temp | wc -l | tr -d ' '`
cat $temp | sed 's/^CHARS [0-9]*/CHARS '"$chars"'/'

/bin/rm -f $temp*
