Changeset 1535


Ignore:
Timestamp:
08/04/09 08:55:43 (16 years ago)
Author:
Eric.Larour
Message:

Bypass environment variables

Location:
issm/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/cron/configs/linux64_morlighem

    r1530 r1535  
    1616
    1717#external pakages to be installed
    18 EP_LIST="mpich2 petsc metis triangle"
     18EXTERNALPACKAGES="mpich2 petsc metis triangle"
    1919
    2020#number of cpus
  • issm/trunk/cron/configs/macosx32_seroussi

    r1530 r1535  
    1515
    1616#external pakages to be installed
    17 EP_LIST="mpich2 petsc metis triangle"
     17EXTERNALPACKAGES="mpich2 petsc metis triangle"
    1818
    1919#number of cpus
  • issm/trunk/cron/nightlyrun.sh

    r1531 r1535  
    99else
    1010        echo "no config file specified. Exiting..."
     11        exit 1
    1112fi
    1213
     
    2930cd $ISSM_DIR/etc
    3031
    31 #modify MATLAB_PATH ( /usr/...   ->   \/usr\/...)
    32 echo $MATLAB_PATH | sed 's/\//\\\//g' > MATLAB_PATH2
    33 MATLAB_PATH2=`cat MATLAB_PATH2`
    34 rm MATLAB_PATH2
     32#source environment variables with new matlab path
     33source environment.sh MATLAB_DIR=$MATLAB_PATH
    3534
    36 #modify MATLAB_DIR in environment_variables.sh
    37 cat environment_variables.sh | sed -e "s/C:\/MATLAB\/R2009a\//$MATLAB_PATH2/g" > environment_variables.sh.bak
    38 mv environment_variables.sh.bak environment_variables.sh
    39 
    40 #Create cluster.rc
     35#create simpler  cluster.rc file, with only the cluster we are interested in.
    4136cat << END > cluster.rc
    4237begin
     
    4641end
    4742END
    48 source $ISSM_DIR/etc/environment.sh
    4943
    5044#2: install some required external packages
    5145cd $ISSM_DIR/externalpackages
    52 for EP in $EP_LIST
     46for ep in $EXTERNALPACKAGES
    5347do
    54         cd $EP
     48        cd $ep
    5549        cp configs/$OS/* .
    5650        ./install.sh $NUMCPUS
  • issm/trunk/etc/environment.csh

    r1467 r1535  
    22
    33source $ISSM_DIR/etc/environment_variables.csh
     4
     5#Do we have any command line arguments? (such as MATLAB_DIR=otherdirthandefault), source them before exporting the variables
     6#to environment.
     7foreach i ($@)
     8eval $i
     9end
    410
    511#MATLAB
  • issm/trunk/etc/environment.sh

    r1467 r1535  
    11#ISSM_DIR and ISSM_ARCH should have been defined already in your shell settings file (.bashrc, .cshrc, etc ...)
    22source $ISSM_DIR/etc/environment_variables.sh
     3
     4#Do we have any command line arguments? (such as MATLAB_DIR=otherdirthandefault), source them before exporting the variables
     5#to environment.
     6for i in $@
     7do
     8        eval $i
     9done
    310
    411#MATLAB
  • issm/trunk/etc/environment_variables.sh

    r1532 r1535  
    44#
    55#
    6 
    76
    87#MATLAB
     
    6059YAMS_DIR="$ISSM_DIR/externalpackages/yams/install"
    6160
    62 #TEX2IM
    63 TEX2IM_DIR="$ISSM_DIR/externalpackages/tex2im/install"
    64 
    65 
    66 
    67 
    68 
    6961#Development packages
    7062#automake
     
    8274#sdk
    8375SDK_DIR="C:/MicrosoftVisualStudio 9.0/Microsoft Visual C++ 2008 Express Edition with SP1 - ENU"
    84 
Note: See TracChangeset for help on using the changeset viewer.