1#! /bin/sh 2 3prefix="@prefix@" 4builddir="@builddir@" 5BITMAP_SRC="${srcdir}/bitmaps" 6BITMAP_INC="@includedir@/X11/bitmaps" 7 8error_count=0 9for bm in ${BITMAP_SRC}/* ${BITMAP_INC}/* ; do 10 if [ -f ${bm} ] ; then 11 echo ${bm} 12 bmbase="$(basename ${bm})" 13 ${builddir}/bmtoa "${bm}" > bma.out 14 error_count=$(( error_count + $? )) 15 ${builddir}/atobm -name "${bmbase}" bma.out > abm.out 16 error_count=$(( error_count + $? )) 17 ${builddir}/bmtoa abm.out > bma.out.2 18 error_count=$(( error_count + $? )) 19 cmp bma.out bma.out.2 20 if [[ $? != 0 ]] ; then 21 exit 1 22 fi 23 rm abm.out bma.out bma.out.2 24 fi 25done 26 27exit $error_count 28