Change to make "make distcheck" (build outside of src directory) work.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#$Id: check_fuzzyiso.sh,v 1.3 2005/03/02 12:49:28 rocky Exp $
|
#$Id: check_fuzzyiso.sh,v 1.4 2005/03/03 01:04:27 rocky Exp $
|
||||||
|
|
||||||
if test -z $srcdir ; then
|
if test -z $srcdir ; then
|
||||||
srcdir=`pwd`
|
srcdir=`pwd`
|
||||||
@@ -9,15 +9,20 @@ if test -z $top_srcdir ; then
|
|||||||
top_srcdir=`pwd`/..
|
top_srcdir=`pwd`/..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check_program="$top_srcdir/example/isofuzzy"
|
if test -z $top_builddir ; then
|
||||||
|
top_builddir=`pwd`/..
|
||||||
|
fi
|
||||||
|
|
||||||
|
check_program="$top_builddir/example/isofuzzy"
|
||||||
|
|
||||||
if test ! -x $check_program ; then
|
if test ! -x $check_program ; then
|
||||||
exit 77
|
exit 77
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for file in *.bin *.iso *.nrg ; do
|
cd $srcdir; src_dir=`pwd`
|
||||||
|
for file in $src_dir/*.bin $src_dir/*.iso $src_dir/*.nrg ; do
|
||||||
case "$file" in
|
case "$file" in
|
||||||
cdda.bin | cdda-mcn.nrg | svcdgs.nrg )
|
$src_dir/cdda.bin | $src_dir/cdda-mcn.nrg | $src_dir/svcdgs.nrg )
|
||||||
good_rc=1
|
good_rc=1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -26,6 +31,8 @@ for file in *.bin *.iso *.nrg ; do
|
|||||||
esac
|
esac
|
||||||
$check_program $file
|
$check_program $file
|
||||||
if test $? -ne $good_rc ; then
|
if test $? -ne $good_rc ; then
|
||||||
|
echo "$0: failed running:"
|
||||||
|
echo " $check_program $file"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user