-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathstartMatlabFileProxy.sh
More file actions
executable file
·36 lines (35 loc) · 993 Bytes
/
Copy pathstartMatlabFileProxy.sh
File metadata and controls
executable file
·36 lines (35 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
cd `dirname "${BASH_SOURCE[0]}"`
source ../matlab/utilities/findMatlab.sh
fname=$1;
if [ ${fname:0:1}X != "'"X ]; then fname="'$fname'"; fi
if [[ $matexe == *matlab ]]; then args=-nodesktop; fi
cat <<EOF | $matexe $args
buffer_fileproxy([],[],$fname);
quit;
EOF
# Note: to call with arguments you must *double-quote* the arguments....
exit;
#----------------------------------------------------------------
# Note nothing below this line is actually used!!!!
buffdir=`dirname $0`
if [ `uname -s` == 'Linux' ]; then
if [ "`uname -a`" == 'armv6l' ]; then
arch='raspberrypi'
else
arch='glnx86';
fi
else # Mac
arch='maci'
fi
buffexe=$buffdir'/buffer/bin/playback';
if [ -r $buffdir/playback ]; then
buffexe=$buffdir'/playback';
fi
if [ -r $buffdir/buffer/bin/${arch}/playback ]; then
buffexe=$buffdir'/buffer/bin/${arch}/playback';
fi
if [ -r $buffdir/buffer/${arch}/playback ]; then
buffexe=$buffdir'/buffer/${arch}/playback';
fi
$buffexe $@ > $logfile