diff options
author | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-06-03 14:33:06 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-08 19:52:05 +0200 |
commit | d4b1ddbeebc469d9696e0877cc6bf1d21663eccf (patch) | |
tree | 09b876b6ce6550975ca9115126a575d89a10d770 /convert | |
download | fnt-d4b1ddbeebc469d9696e0877cc6bf1d21663eccf.tar.gz |
Convert ttf -> dit for (g)troff
Diffstat (limited to 'convert')
-rwxr-xr-x | convert | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#!/bin/sh + +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 |