all repos — xrxs @ 11bfceb3274b080394eb54adaa2b00479c24d9a1

experimental networked application/game server with 9p

uxn-client/mkfont.sh (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

rm $2

offset=0;
keep=1;
while [ ${offset} -lt 1536 ]; do
  if [ ${keep} -eq 1 ]; then
    head -c $((offset + 8)) $1 | tail -c 8 >> $2
    keep=0
  else
    keep=1
  fi
  offset=$((offset + 8))
done