#!/bin/sh
#$Id: check_fuzzyiso.sh,v 1.5 2005/04/11 02:36:36 rocky Exp $
if test "X$srcdir" = "X" ; then
srcdir=`pwd`
fi
if test "X$top_srcdir" = "X" ; then
top_srcdir=`pwd`/..
if test "X$top_builddir" = "X" ; then
top_builddir=`pwd`/..
check_program="$top_builddir/example/isofuzzy"
if test ! -x $check_program ; then
exit 77
cd $srcdir; src_dir=`pwd`
for file in $src_dir/*.bin $src_dir/*.iso $src_dir/*.nrg ; do
case "$file" in
$src_dir/cdda.bin | $src_dir/cdda-mcn.nrg | $src_dir/svcdgs.nrg )
good_rc=1
;;
*)
good_rc=0
esac
$check_program $file
if test $? -ne $good_rc ; then
echo "$0: failed running:"
echo " $check_program $file"
exit 1
done
exit 0
#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") ***
#;;; End: ***