aboutsummaryrefslogtreecommitdiff
path: root/convert
blob: 186e736a0d22cd32c8435443ee29b1ab6e9e962f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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