Changeset 8139


Ignore:
Timestamp:
05/05/11 08:13:18 (14 years ago)
Author:
Mathieu Morlighem
Message:

find matlab version in /Users/morlighe/Desktop/Glaciology/svn/issm/trunk/externalpackages/matlab/install/.VERSION for R2008a and more (no need to export MATLAB_VERSION variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/m4/matlab.m4

    r7170 r8139  
    291291                        fi
    292292                               
    293                                 # For Matlab R2008 and more, the version number is stored in bin/util/mex/version.txt
    294                         ax_cv_matlab_version=`cat $MATLAB/bin/util/mex/version.txt`
    295                         if test -n "$ax_cv_matlab_version" ; then
     293                                # For Matlab R2008a and more, the version number is stored in .VERSION
     294                                ax_cv_matlab_version=`cat $MATLAB/.VERSION`
     295                                if test -n "$ax_cv_matlab_version" ; then
    296296                                break
    297                         fi
    298 
     297                                fi
    299298                fi
    300299        done
     
    308307fi])
    309308case $ax_cv_matlab_version in
    310   @<:@1-9@:>@.@<:@0-9@:>@ | @<:@1-9@:>@@<:@0-9@:>@.@<:@0-9@:>@)
    311     MATLAB_VERSION=$ax_cv_matlab_version
    312     MATLAB_MAJOR=`echo $MATLAB_VERSION | sed -e 's/^\(@<:@0-9@:>@*\)\.@<:@0-9@:>@*.*/\1/'`
    313     MATLAB_MINOR=`echo $MATLAB_VERSION | sed -e 's/^@<:@0-9@:>@*\.\(@<:@0-9@:>@*\).*/\1/'`
    314     ;;
    315         R2010a)
    316         MATLAB_VERSION=R2010a
    317    MATLAB_MAJOR=7
    318         MATLAB_MINOR=8
     309        @<:@1-9@:>@.@<:@0-9@:>@ | @<:@1-9@:>@@<:@0-9@:>@.@<:@0-9@:>@)
     310        MATLAB_VERSION=$ax_cv_matlab_version
     311        MATLAB_MAJOR=`echo $MATLAB_VERSION | sed -e 's/^\(@<:@0-9@:>@*\)\.@<:@0-9@:>@*.*/\1/'`
     312        MATLAB_MINOR=`echo $MATLAB_VERSION | sed -e 's/^@<:@0-9@:>@*\.\(@<:@0-9@:>@*\).*/\1/'`
    319313        ;;
    320        
    321         R2010b)
    322         MATLAB_VERSION=R2010b
    323    MATLAB_MAJOR=7
    324         MATLAB_MINOR=11
    325         ;;
    326 
    327         R2009a)
    328         MATLAB_VERSION=R2009a
     314        R2007a)
     315        MATLAB_VERSION=R2007a
    329316        MATLAB_MAJOR=7
    330         MATLAB_MINOR=8
     317        MATLAB_MINOR=4
    331318        ;;
    332319        R2008a)
     
    335322        MATLAB_MINOR=6
    336323        ;;
    337         R2007a)
    338         MATLAB_VERSION=R2007a
     324        R2009a)
     325        MATLAB_VERSION=R2009a
    339326        MATLAB_MAJOR=7
    340         MATLAB_MINOR=4
     327        MATLAB_MINOR=8
     328        ;;
     329        R2010a)
     330        MATLAB_VERSION=R2010a
     331        MATLAB_MAJOR=7
     332        MATLAB_MINOR=8
     333        ;;
     334        R2010b)
     335        MATLAB_VERSION=R2010b
     336        MATLAB_MAJOR=7
     337        MATLAB_MINOR=11
    341338        ;;
    342339
Note: See TracChangeset for help on using the changeset viewer.