aboutsummaryrefslogtreecommitdiff
path: root/convert
diff options
context:
space:
mode:
authorJohn Ankarstr\xf6m <john@ankarstrom.se>2021-06-03 14:33:06 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-08 19:52:05 +0200
commitd4b1ddbeebc469d9696e0877cc6bf1d21663eccf (patch)
tree09b876b6ce6550975ca9115126a575d89a10d770 /convert
downloadfnt-d4b1ddbeebc469d9696e0877cc6bf1d21663eccf.tar.gz
Convert ttf -> dit for (g)troff
Diffstat (limited to 'convert')
-rwxr-xr-xconvert12
1 files changed, 12 insertions, 0 deletions
diff --git a/convert b/convert
new file mode 100755
index 0000000..50676c8
--- /dev/null
+++ b/convert
@@ -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