File: install_spm_mcr.sh

package info (click to toggle)
nipype 1.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,260 kB
  • sloc: python: 156,463; javascript: 9,246; tcl: 608; sh: 485; makefile: 168
file content (19 lines) | stat: -rw-r--r-- 876 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if [ ! -d $HOME/mcr ]
then
  echo "destinationFolder=$HOME/mcr" > $HOME/mcr_options.txt
  echo "agreeToLicense=yes" >> $HOME/mcr_options.txt
  echo "outputFile=/tmp/matlabinstall_log" >> $HOME/mcr_options.txt
  echo "mode=silent" >> $HOME/mcr_options.txt
  mkdir -p $HOME/matlab_installer
  wget -nc http://www.mathworks.com/supportfiles/downloads/R2015a/deployment_files/R2015a/installers/glnxa64/MCR_R2015a_glnxa64_installer.zip -O $HOME/matlab_installer/installer.zip
  unzip $HOME/matlab_installer/installer.zip -d $HOME/matlab_installer/
  $HOME/matlab_installer/install -inputFile $HOME/mcr_options.txt
  rm -rf $HOME/matlab_installer $HOME/mcr_options.txt
fi

if [ ! -d $HOME/spm12 ]
then
  wget http://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/dev/spm12_r6472_Linux_R2015a.zip -O $HOME/spm12.zip
  unzip $HOME/spm12.zip -d $HOME
  rm -rf $HOME/spm12.zip
fi