Changeset 1530
- Timestamp:
- 08/04/09 08:40:02 (16 years ago)
- Location:
- issm/trunk/cron
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/cron/configs/linux64_morlighem
r1529 r1530 1 1 #SVN repository 2 2 REPOSITORY="http://s383-rhat/issm/svn/issm/trunk" 3 4 #email adress to send Cron report 5 EMAIL_ADRESS="mathieu.morlighem@jpl.nasa.gov" 6 3 7 4 8 #ISSM directory … … 8 12 ISSM_ARCH="linux-gnu-amd64" 9 13 10 #external pakages configs: 11 EP_CONFIG="linux64" 14 #Operating System 15 OS="linux64" 16 17 #external pakages to be installed 18 EP_LIST="mpich2 petsc metis triangle" 12 19 13 20 #number of cpus -
issm/trunk/cron/configs/macosx32_seroussi
r1529 r1530 1 1 #SVN repository 2 2 REPOSITORY="http://s383-rhat/issm/svn/issm/trunk" 3 4 #email adress to send Cron report 5 EMAIL_ADRESS="helene.seroussi@jpl.nasa.gov" 3 6 4 7 #ISSM directory … … 8 11 ISSM_ARCH="macosx-gnu" 9 12 10 #external pakages configs: 11 EP_CONFIG="macosx32" 13 #Operating System 14 OS="macosx" 15 16 #external pakages to be installed 17 EP_LIST="mpich2 petsc metis triangle" 12 18 13 19 #number of cpus 14 NUMCPUS= ""20 NUMCPUS=1 15 21 16 22 #MATLAB path -
issm/trunk/cron/nightlyrun.sh
r1525 r1530 6 6 if [ $# -ne 1 ]; 7 7 then 8 CONFIG_FILE=$1;8 source config/$1; 9 9 else 10 10 echo "no config file specified. Exiting..." … … 12 12 13 13 #create nightly run variables 14 export today=`date | awk '{printf("%s-%s-%s",$2,$3,$6);}'`; 15 export host_name=`hostname`; 14 export TODAY=`date | awk '{printf("%s-%s-%s",$2,$3,$6);}'`; 15 export HOST_NAME=`hostname`; 16 export ISSM_RELEASE="issm" 16 17 17 18 #create ISSM variables 18 19 export ISSM_DIR 19 20 export ISSM_ARCH 20 export ISSM_RELEASE21 21 22 22 #Erase previous code and Fetch the new one … … 25 25 26 26 #install ISSM 27 cd $ISSM_DIR28 27 29 28 #1: modify some variables 30 cd etc 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 29 cd $ISSM_DIR/etc 35 30 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 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 39 35 40 #modify EXECUTION_PATH ( /usr/... -> \/usr\/...) 41 echo $EXECUTION_PATH | sed 's/\//\\\//g' | sed 's/-/\\-/g' > EXECUTION_PATH2 42 EXECUTION_PATH2=`cat EXECUTION_PATH2` 43 rm EXECUTION_PATH2 44 echo $ISSM_DIR\/bin | sed 's/\//\\\//g' | sed 's/-/\\-/g' > CLUSTER_PATH 45 CLUSTER_PATH=`cat CLUSTER_PATH` 46 rm CLUSTER_PATH 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 47 39 48 #modify EXECUTION_PATH in cluster.rc 49 cat cluster.rc | sed -e "s-cluster_codepath.*-cluster_codepath\=$CLUSTER_PATH-" | sed -e "s-cluster_executionpath.*-cluster_executionpath\=$EXECUTION_PATH2-" > cluster.bak 50 mv cluster.bak cluster.rc 51 cd .. 40 #Create cluster.rc 41 cat <<END > cluster.rc 42 begin 43 cluster_name=$HOST_NAME 44 cluster_codepath=$ISSM_DIR/bin 45 cluster_executionpath=$EXECUTION_PATH 46 end 47 END 52 48 source $ISSM_DIR/etc/environment.sh 53 49 54 50 #2: install some required external packages 55 cd externalpackages 56 cd mpich2 57 cp configs/$EP_CONFIG/* . 51 cd $ISSM_DIR/externalpackages 52 for EP in $EP_LIST 53 do 54 cd $EP 55 cp configs/$OS/* . 58 56 ./install.sh $NUMCPUS 59 cd ../petsc 60 cp configs/$EP_CONFIG/* . 61 ./install.sh $NUMCPUS 62 cd ../metis 63 cp configs/$EP_CONFIG/* . 64 ./install.sh $NUMCPUS 65 cd ../triangle 66 cp configs/$EP_CONFIG/* . 67 ./install.sh $NUMCPUS 68 cd $ISSM_DIR 57 cd .. 58 done 69 59 70 60 #3: install automake and autoconf 71 cd devpackages61 cd $ISSM_DIR/devpackages 72 62 make 73 63 cd .. … … 75 65 #3: generate MakeFiles 76 66 sh scripts/automakererun.sh 77 sh config/ wilkes/linux64.sh67 sh config/$OS/$OS.sh 78 68 79 69 #4: compile and install ISSM 80 if [ -z $NUMCPUS ]; 81 then 82 make 83 make install 84 else 85 make -j $NUMCPUS 86 make -j $NUMCPUS install 87 fi 70 make -j $NUMCPUS 71 make -j $NUMCPUS install 88 72 89 73 #Launch matlab and the nightly run script … … 104 88 for i in `echo $MAILINGLIST`; do 105 89 cat - report.html <<HERE | /usr/lib/sendmail -oi -t 106 From: "ISSM Nightly run" < mathieu.morlighem@jpl.nasa.gov>90 From: "ISSM Nightly run" <$EMAIL_ADRESS> 107 91 To: $i 108 92 Subject: Nightly runs of $ISSM_RELEASE on: $host_name. Date:$today. -
issm/trunk/cron/report.sh
r1521 r1530 80 80 <br> 81 81 <div class="issmcomment"> 82 date: $ today<br>83 host: $ host_name<br>82 date: $TODAY<br> 83 host: $HOST_NAME<br> 84 84 platform: $ISSM_ARCH<br> 85 85 release: $ISSM_RELEASE<br>
Note:
See TracChangeset
for help on using the changeset viewer.