#!/bin/sh

# convert -- batch convert .ttf -> .dit

[ $# -eq 0 ] && { echo usage: $0 family ttf ... 1>&2; exit 1; }

f=$1
shift

for x in "$@"; do
	make "${x%.ttf}".dit
	case "$x" in
	*/*)	./rename "${x%/*}/$f" "${x%.ttf}.dit" ;;
	*)	./rename "$f" "${x%.ttf}.dit" ;;
	esac
done