#!/bin/sh
for i in Fonts/Lin*.otf
do
	name="`basename $i .otf`"
	./otf2gdl -e $i ${name}.gdl 
	wine GrCompiler.exe -v2 ${name}.gdl input/${name}.ttf output/${name}_G.ttf
	#grcompiler -v2 ${name}.gdl input/${name}.ttf output/${name}_G.ttf
	#wine GrCompiler.exe -n1526 -v2 ${name}.gdl input/${name}.ttf output/${name}_G.ttf "Linux Libertine G"
done
sudo cp output/Lin*.ttf /usr/share/fonts/truetype/
sudo fc-cache
/opt/libreoffice/program/soffice -writer
