#!/bin/sh
for i in LinBio*otf LinLib*BI*otf LinLib*Re*otf LinLib*It*otf LinLib*Bd*otf
do
	name="`basename $i .otf`"
	./otf2gdl -e $i ${name}.gdl 
	wine GrCompiler.exe -v2 ${name}.gdl input/${name}.ttf output/`echo $name | sed 's/_\(..\).*/G_\1/'`.ttf
done
sudo cp output/Lin*.ttf /usr/share/fonts/truetype/
sudo fc-cache
