changeset 25:de95213cdcc2

swiplml now sets DYLD_FALLBACK_LIBRARY_PATH based on output of matlab -e
author samer
date Wed, 22 Feb 2012 21:36:34 +0000
parents 27c10ed38592
children 4269030c3f55 555b29024dab
files swiplml
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/swiplml	Wed Feb 22 21:17:52 2012 +0000
+++ b/swiplml	Wed Feb 22 21:36:34 2012 +0000
@@ -1,3 +1,5 @@
 #!/bin/sh
-export DYLD_FALLBACK_LIBRARY_PATH=/lib:/usr/lib:/usr/X11/lib:/usr/local/matlab7/bin/maci64
+MATLAB=$(matlab -e | grep MATLAB= | sed -e 's/MATLAB=//')
+ARCH=$(matlab -e | grep ARCH= | sed -e 's/ARCH=//')
+export DYLD_FALLBACK_LIBRARY_PATH=/lib:/usr/lib:/usr/X11/lib:$MATLAB/bin/$ARCH
 swipl "$@"