5 rm -f rules/*.rules rules/foundries.new
11 ord=`perl -e 'print ord($ARGV[0]),"\n" or die $!' "$c"`
15 c=`perl -e 'printf "%c", $ARGV[0]' "$ord"`
22 ./printrule >&3 "$bad" "$good" $height \
23 "^ENCODING $ord$" $partial "$c"
27 while read keyword rest; do
34 zcat $f/$pcf.pcf.gz | pcf2bdf >$out
41 next unless s/^BBX\s+//;
44 s/[-+]?\b\d+\b/ sprintf "%d", $& /ge;
45 m/^\d+\,(\d+)\b/ or die;
46 print "key=$_; height=$1\n" or die $!;
49 oldfoundry=`perl -ne '
50 next unless s/^FOUNDRY\s+\"?//;
55 printf "%s %s" "$oldfoundry" "$newfoundry" >>rules/foundries.new
56 exec 3>rules/$newfoundry,$key.rules
57 echo >&3 '# -*- perl -*-'
58 echo >&3 '# autogenerated by mkrules'
77 echo >&2 "??? $keyword"
83 mv rules/foundries.new rules/foundries