X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=retrocrawl;a=blobdiff_plain;f=tools%2Fconv_sprite;fp=tools%2Fconv_sprite;h=c05deb7a857f03287246304f29cab3f546b6177a;hp=0000000000000000000000000000000000000000;hb=af94a88e5de76c4b00df102f82643b4b64cb529a;hpb=87c45ef8c82a3925719cbf2024e5932208b244ce diff --git a/tools/conv_sprite b/tools/conv_sprite new file mode 100755 index 0000000..c05deb7 --- /dev/null +++ b/tools/conv_sprite @@ -0,0 +1,13 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "pass the sprite header file as argument" + exit 1 +fi + +cc -pedantic -Wall -DHDRFILE=\"$1\" -o /tmp/conv_sprite.bin conv_sprite.c +if [ $? != 0 ]; then + exit 1 +fi + +/tmp/conv_sprite.bin