Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 073a8486 authored by hhakim's avatar hhakim
Browse files

Minor change: updating Win and Linux post install scripts for the gpu_mod...

Minor change: updating Win and Linux post install scripts for the gpu_mod auto-loading to be silent for matfaust (as it is already for pyfaust).
parent 97ae5fe2
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ else ...@@ -35,7 +35,7 @@ else
then then
grep -i -v faust "$USR_STARTUP_FILE" > "${USR_STARTUP_FILE}.tmp" 2>/dev/null && mv "${USR_STARTUP_FILE}.tmp" "$USR_STARTUP_FILE" grep -i -v faust "$USR_STARTUP_FILE" > "${USR_STARTUP_FILE}.tmp" 2>/dev/null && mv "${USR_STARTUP_FILE}.tmp" "$USR_STARTUP_FILE"
echo "addpath(genpath('"$FAUST_MATLAB_WRAPPER_PATH"'))" >> "$USR_STARTUP_FILE" echo "addpath(genpath('"$FAUST_MATLAB_WRAPPER_PATH"'))" >> "$USR_STARTUP_FILE"
echo "matfaust.enable_gpu_mod()" >> "$USR_STARTUP_FILE" echo "matfaust.enable_gpu_mod('silent', true)" >> "$USR_STARTUP_FILE"
chown $USER $USR_STARTUP_FILE chown $USER $USR_STARTUP_FILE
RET2=$(($?+$RET2)) RET2=$(($?+$RET2))
fi fi
......
...@@ -243,13 +243,13 @@ Function matlabFoundCb ...@@ -243,13 +243,13 @@ Function matlabFoundCb
FileOpen $1 "$R4\toolbox\local\startup.m" a FileOpen $1 "$R4\toolbox\local\startup.m" a
FileSeek $1 0 END ; do not erase start of file (but risk to add Faust path multiple times) FileSeek $1 0 END ; do not erase start of file (but risk to add Faust path multiple times)
FileWrite $1 "$\r$\naddpath(genpath('$INSTDIR\matlab'));$\r$\nmatfaust.enable_gpu_mod()" FileWrite $1 "$\r$\naddpath(genpath('$INSTDIR\matlab'));$\r$\nmatfaust.enable_gpu_mod('silent', true)"
FileClose $1 FileClose $1
FileOpen $1 "$DOCUMENTS\MATLAB\startup.m" w FileOpen $1 "$DOCUMENTS\MATLAB\startup.m" w
IfErrors done IfErrors done
FileSeek $1 0 END FileSeek $1 0 END
FileWrite $1 "$\r$\naddpath(genpath('$INSTDIR\matlab'));$\r$\nmatfaust.enable_gpu_mod()" FileWrite $1 "$\r$\naddpath(genpath('$INSTDIR\matlab'));$\r$\nmatfaust.enable_gpu_mod('silent', true)"
FileClose $1 FileClose $1
done: done:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment