Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 826e3af8 authored by hhakim's avatar hhakim
Browse files

Modify macos pkg postinstall script: in matlab startup test that mexFaustReal...

Modify macos pkg postinstall script: in matlab startup test that mexFaustReal is present to decide modifying the path (instead of matfaust.version).

This test was added to avoid duplicating FAµST paths in matlab path.
parent 63de996a
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ function inject_matlab_code_to_update_path
# each line must contains the word faust (for filtering of old install lines)
FILE=$1
echo "% Edit at your own risk: automatically added by the FAuST installer ${CPACK_PACKAGE_VERSION} to enable access to the FAuST library, https://faust.inria.fr" >> "$FILE"
echo "matfaust_path = which('matfaust.version');" >> "$FILE"
echo "matfaust_path = which('mexFaustReal');" >> "$FILE"
echo "if(isempty(matfaust_path))" >> "$FILE"
echo "addpath('"$FAUST_MATLAB_WRAPPER_PATH"')" >> "$FILE"
echo "addpath(['"$FAUST_MATLAB_WRAPPER_PATH"' '/mex'])" >> "$FILE"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment