sprite test
[retrocrawl] / tools / conv_sprite
1 #!/bin/sh
2
3 if [ -z "$1" ]; then
4         echo "pass the sprite header file as argument"
5         exit 1
6 fi
7
8 # fix header file char -> unsigned char
9 sed -i 's/static char/static unsigned char/' "$1"
10
11 cc -pedantic -Wall -DHDRFILE=\"$1\" -o /tmp/conv_sprite.bin conv_sprite.c
12 if [ $? != 0 ]; then
13         exit 1
14 fi
15
16 /tmp/conv_sprite.bin