File: build

package info (click to toggle)
fonts-gnutypewriter 1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,152 kB
  • sloc: sh: 23; xml: 17; makefile: 11
file content (9 lines) | stat: -rw-r--r-- 287 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/bin/bash

for a in *.sfd; do
    fontfile=$(basename $a .sfd)
    namedir=$(echo $fontfile | sed "s,-.*,,")
    name=$(echo $fontfile | sed "s,-.*,,")
    type=$(echo $fontfile | sed "s,.*-,,")
    fontforge -lang=ff -c 'Open($1); Generate($2)' ${fontfile}.sfd fonts/${name}.ttf
done