#!/bin/csh -f

cp /dev/null texinc.h
cp /dev/null texext.h

foreach f (*.rgb* *.int)
set g = $f:t
set h = $g:r
set i = tx_$h
rgb2c -F -m $i $f > $i.h
if ($i != tx_wedge) cvxpa $i.h
echo \#include \"$i.h\" >> texinc.h
echo extern ushort $i\[\]\; >> texext.h
end
