xrxs/uxn-client/mkfont.sh

15 lines
211 B
Bash
Executable file

#!/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