#!/bin/sh

# pswrite.sh
# Prevod fontu na krivky pomoci GhostScriptu.
# Miroslav Broz (miroslav.broz@email.cz), Oct 2nd 2002

for FILE in $@ ; do
  OUT=`echo $FILE | awk 'BEGIN{FS=".";}//{s=$1; for (i=2; i<NF; i++){s=s "." $i;} print s;}'`
  gs -q -dNOPAUSE -sDEVICE=pswrite -sOutputFile="$OUT"_krivky.ps $FILE quit.ps
done

