xrxs/uxn-client/mkfont.sh

16 lines
211 B
Bash
Raw Normal View History

2021-08-28 04:34:12 +00:00
#!/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