summaryrefslogtreecommitdiff
path: root/makelabel.sh
blob: 123f3a450dff86a9f9cf13b1a9f4d3db20f4ba84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
target="$1"
xoffset=$2
yoffset=$3
zoffset=$4
while read -N 1 c;do
 name="$(printf "%02x" "'$c")"
 if [ "$name" = "0a" ]; then
  xoffset=-6
  yoffset="$(printf '%d - %d\n' $yoffset 10 | bc)"
 fi
 grep "^$name " font/font.hackvr | sed 's ^'"$name"' '"$target"' ' | ./tools/offsetshape.sh "$xoffset" "$yoffset" "$zoffset"
 xoffset="$(printf '%d + %d\n' $xoffset 6 | bc)"
done