Commit e7420681 authored by Michael Hanke's avatar Michael Hanke

Be more inclusive when trying to determine MATLAB versions

parent 892a5e93
......@@ -7,6 +7,10 @@ matlab-support (0.0.20) UNRELEASED; urgency=medium
license manager) from failing in a way identical to the one described
in #609882. Suggested instead of recommended due to the significant
footprint of lsb-core dependencies.
* Change matlab version detection logic to include searching all mex*
scripts, as recent MATLAB version move the version declaration around.
This prevents unnecessary execution of MATLAB itself, which may fail
when installing from scratch (with preseeding).
-- Michael Hanke <mih@debian.org> Fri, 14 Aug 2015 13:09:24 +0200
......
......@@ -72,7 +72,7 @@ while [ "$STATE" != 0 -a "$STATE" != 6 ]; do
# ignore everything that doesn't look like matlab
[ ! -f $mpath/bin/mex ] && continue
# figure out the version
mver=$(grep "ver='" ${mpath}/bin/mex | cut -d "'" -f 2,2 | head -n1)
mver=$(grep "ver='" ${mpath}/bin/mex* | cut -d "'" -f 2,2 | head -n1)
if [ -z "$mver" ]; then
# try alternative, more robust but heavy-weight approach
mver=$(echo version | ${mpath}/bin/matlab -nodesktop -nodisplay -nosplash 2>/dev/null \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment