forked from davhunt/app-benson14-retinotopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.sh
executable file
·26 lines (22 loc) · 945 Bytes
/
compile.sh
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
#!/bin/bash
module unload matlab && module load matlab/2019a
mkdir -p compiled
log=compiled/commit_ids.txt
true > $log
echo "/N/u/brlife/git/jsonlab" >> $log
(cd /N/u/brlife/git/jsonlab && git log -1) >> $log
echo "/N/u/brlife/git/mrTools" >> $log
(cd /N/u/brlife/git/mrTools && git log -1) >> $log
echo "/N/u/davhunt/Carbonate/analyzePRF/utilities" >> $log
(cd /N/u/davhunt/Carbonate/analyzePRF/utilities && git log -1) >> $log
echo "/N/u/davhunt/Carbonate/Downloads/gifti-1.8" >> $log
(cd /N/u/davhunt/Carbonate/Downloads/gifti-1.8 && git log -1) >> $log
cat > build.m <<END
addpath(genpath('/N/u/brlife/git/jsonlab'))
addpath(genpath('/N/u/brlife/git/mrTools'))
addpath(genpath('/N/u/davhunt/Carbonate/analyzePRF/utilities'))
addpath(genpath('/N/u/davhunt/Carbonate/Downloads/gifti-1.8'))
mcc -m -R -nodisplay -a /N/u/brlife/git/vistasoft/mrDiffusion/templates -d compiled main
exit
END
matlab -nodisplay -nosplash -r build && rm build.m