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