#!/bin/sh

cp ctydb.dat ctydb.old
rm ctydb.dat
tr  '\015' '\012' <  cty.dat > /tmp/tlf/ cty.2
sed  's/,/#    /g'  /tmp/tlf/cty.2  > /tmp/tlf/cty.3
sed  's/;//g' /tmp/tlf/cty.3 >  /tmp/tlf/cty.2
echo "Not found             :   --:  --:  --                         0.0:  --:" >> /usr/share/tlf/ctydb.dat
echo "    " >> ctydb.dat
echo "    --" >> ctydb.dat
echo "    " >> ctydb.dat
tr '\043'  '012' < /tmp/tlf/cty.2 >> /tmp/tlf/ctydb.dat
rm /tmp/tlf/cty.2
rm /tmp/tlf/cty.3


