Debian Codegraph @

texmf-dist/source/latex/iwonamath/makeiwonamathfd.sh

raw
1 #!/usr/bin/env bash
2 # A simple script to create Iwona Math fds from template.
3 # Public domain
4 family=( iwonamath iwonamathc iwonamathl iwonamathlc )
5 medium=( iwonar iwonacr iwonal iwonacl )
6 bold=( iwonab iwonacb iwonam iwonacm )
7 tmpl=( oml_FAMILY_.fd oms_FAMILY_.fd omx_FAMILY_.fd ot1_FAMILY_.fd ot1_FAMILY_m.fd )
8 for i in 0 1 2 3; do
9 for template in ${tmpl[@]}; do
10 file=$(echo $template | sed "s/_FAMILY_/${family[$i]}/")
11 cat $template | \
12 sed "s/_FAMILY_/${family[$i]}/" | sed "s/_MEDIUM_/${medium[$i]}/" | \
13 sed "s/_BOLD_/${bold[$i]}/" > $file
14 done
15 done