mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2025-02-17 01:20:02 +00:00
Fix 'make distcheck'.
This commit is contained in:
parent
511d81cbaf
commit
216c5ab901
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user