Changeset 15004
- Timestamp:
- 05/10/13 07:42:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/matlab/install.sh
r15000 r15004 1 1 #!/bin/bash 2 rm -rf install 3 ln -s /usr/local/matlab714/ install 2 set -eu 3 4 if [ ! -h install ]; 5 then 6 echo " ****************************************************************" 7 echo " * *" 8 echo " * you need create a symbolic link from matlab's root directory *" 9 echo " * *" 10 echo " * First, you need to locate matlab's root directory *" 11 echo " * The easiest way to find it is to launch matlab and run the *" 12 echo " * following command: matlabroot *" 13 echo " * Then, create a symbolic link using the command 'ln -s ' the *" 14 echo " * target directory should be named 'install' *" 15 echo " * *" 16 echo " * Examples: *" 17 echo " * ln -s /usr/local/matlab712/ install *" 18 echo " * ln -s /Applications/MATLAB_R2012a.app/ install *" 19 echo " * *" 20 echo " * run ./install.sh again to check that the link is correct *" 21 echo " * *" 22 echo " ****************************************************************" 23 else 24 25 #Read link 26 DIR=$(readlink install) 27 if [ -d $DIR ] 28 then 29 echo "Symbolic link correctly set" 30 else 31 rm -rf install 32 echo "Incorrect symbolic link:" 33 echo "provided target ($DIR) does not exist or is not a directory" 34 fi 35 fi
Note:
See TracChangeset
for help on using the changeset viewer.