#!/bin/sh

for FILE in *.ttf ; do
  NAME=`echo $FILE | awk 'BEGIN{FS=".";}//{s=$1; for (i=2; i<NF; i++) {s=s "." $i;} print s;}'`

  ./ttf2pt1 -b $FILE
  afm2tfm $NAME.afm
  ps2pk -X600 $NAME.pfb $NAME.600pk
done

