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