Fix 'make distcheck'.

This commit is contained in:
Erik de Castro Lopo 2007-08-26 13:12:04 +10:00
parent 511d81cbaf
commit 216c5ab901
2 changed files with 4 additions and 7 deletions

View File

@ -48,7 +48,7 @@ sfwrite.oct : format.cc sfwrite.cc
# Allow for the test being run in the build dir, but the test script
# being located in the source dir.
check :
$(srcdir)/octave_test.sh
octave_src_dir=$(srcdir) $(srcdir)/octave_test.sh
# Since the octave modules are installed in a special location, a custom install

View File

@ -6,11 +6,6 @@ if [ -d Octave ]; then
cd Octave
fi
if [ ! -f sfread.cc ]; then
echo "Can't find sfread.cc. Probably being run from incorrect dir."
exit 1
fi
# Find libsndfile shared object.
libsndfile_so_location=""
@ -51,7 +46,9 @@ case `file -b $sfread_write_oct_location/sfread.oct` in
LD_LIBRARY_PATH="$libsndfile_so_location:$LD_LIBRARY_PATH"
octave_script="`pwd`/octave_test.m"
octave_src_dir=`(cd $octave_src_dir && pwd)`
octave_script="$octave_src_dir/octave_test.m"
(cd $sfread_write_oct_location && octave -qH $octave_script)