Changeset 12159


Ignore:
Timestamp:
05/01/12 07:37:27 (13 years ago)
Author:
Mathieu Morlighem
Message:

Changing ISSM_TIER to ISSM_DIR

Location:
issm/trunk-jpl/scripts
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/scripts/GenerateReferences.sh

    r8066 r12159  
    1616\begin{document}
    1717\nocite{$CITE}
    18 \bibliography{$ISSM_DIR/publications/bibtex/references}
     18\bibliography{$JPL_SVN/publications/bibtex/references}
    1919\end{document}
    2020END
     
    2929mv references.bak2 references.bbl
    3030echo "Converting to rtf"
    31 $ISSM_TIER/externalpackages/latex2rtf/install/latex2rtf -P $ISSM_TIER/externalpackages/latex2rtf/install/cfg/ references
     31$ISSM_DIR/externalpackages/latex2rtf/install/latex2rtf -P $ISSM_DIR/externalpackages/latex2rtf/install/cfg/ references
    3232
    3333#Remove all but rtf file
  • issm/trunk-jpl/scripts/archive.sh

    r6088 r12159  
    1010
    1111#Cleanup code
    12 cd $ISSM_TIER
     12cd $ISSM_DIR
    1313make clean
    1414make distclean
     
    1818
    1919#Create tar file, with today's date in the title;
    20 cd $ISSM_TIER/..
     20cd $ISSM_DIR/..
    2121today=`today_date`
    22 tar zcvf issm-3.0-$today.tar.gz  `basename $ISSM_TIER`
     22tar zcvf issm-3.0-$today.tar.gz  `basename $ISSM_DIR`
  • issm/trunk-jpl/scripts/automakererun.sh

    r10863 r12159  
    44
    55
    6  ACLOCAL="$ISSM_TIER/externalpackages/automake/install/bin/aclocal"
    7 AUTOCONF="$ISSM_TIER/externalpackages/autoconf/install/bin/autoconf"
    8 AUTOHEAD="$ISSM_TIER/externalpackages/autoconf/install/bin/autoheader"
    9 AUTOMAKE="$ISSM_TIER/externalpackages/automake/install/bin/automake"
     6 ACLOCAL="$ISSM_DIR/externalpackages/automake/install/bin/aclocal"
     7AUTOCONF="$ISSM_DIR/externalpackages/autoconf/install/bin/autoconf"
     8AUTOHEAD="$ISSM_DIR/externalpackages/autoconf/install/bin/autoheader"
     9AUTOMAKE="$ISSM_DIR/externalpackages/automake/install/bin/automake"
    1010
    1111echo "removing config.cach"
  • issm/trunk-jpl/scripts/cloc2html.py

    r11241 r12159  
    44import sys, re, os
    55
    6 ISSM_TIER=os.getenv('ISSM_TIER');
    7 if(not ISSM_TIER): raise NameError('ISSM_TIER undefined')
     6ISSM_DIR=os.getenv('ISSM_DIR');
     7if(not ISSM_DIR): raise NameError('ISSM_DIR undefined')
    88
    99infile  = open('temp','r')
  • issm/trunk-jpl/scripts/convertmatlabclasses.py

    r11226 r12159  
    44
    55#get names of all directories to process
    6 ISSM_TIER=os.getenv('ISSM_TIER');
    7 if(not ISSM_TIER): raise NameError('ISSM_TIER undefined')
    8 newclassesdir = ISSM_TIER + '/src/m/classes/'
    9 oldclassesdir = ISSM_TIER + '/src/m/oldclasses/'
     6ISSM_DIR=os.getenv('ISSM_DIR');
     7if(not ISSM_DIR): raise NameError('ISSM_DIR undefined')
     8newclassesdir = ISSM_DIR + '/src/m/classes/'
     9oldclassesdir = ISSM_DIR + '/src/m/oldclasses/'
    1010
    1111#make new directory
  • issm/trunk-jpl/scripts/dailyrun.sh

    r6088 r12159  
    5454#Prepare run
    5555#Windows hack for startup.m {{{1
    56 #windows environments: ISSM_TIER_WIN variable not correctly picked up when using
    57 #the cron job. just get startup to take the ISSM_TIER variable as the pwd:
     56#windows environments: ISSM_DIR_WIN variable not correctly picked up when using
     57#the cron job. just get startup to take the ISSM_DIR variable as the pwd:
    5858if [ "$OS" = "winxp32" ]
    5959then
    60         cat startup.m | sed 's/clear status/clear status; ISSM_TIER=pwd;/g' > startup.m.bak
     60        cat startup.m | sed 's/clear status/clear status; ISSM_DIR=pwd;/g' > startup.m.bak
    6161        mv startup.m.bak startup.m
    6262fi
    6363#}}}
    6464#create softlink to startup {{{1
    65 cd $ISSM_TIER/test/NightlyRun/
    66 ln -s $ISSM_TIER/startup.m .
     65cd $ISSM_DIR/test/NightlyRun/
     66ln -s $ISSM_DIR/startup.m .
    6767#}}}
    6868#Create dailylog directory and info.log {{{1
     
    7070INSTALL_TIME=$(timer)
    7171ELAPSED_INSTALL=$(timer $START_TIME)
    72 rm -rf $ISSM_TIER/dailylog
    73 mkdir  $ISSM_TIER/dailylog
    74 cat << END > $ISSM_TIER/dailylog/info.log
     72rm -rf $ISSM_DIR/dailylog
     73mkdir  $ISSM_DIR/dailylog
     74cat << END > $ISSM_DIR/dailylog/info.log
    7575today:     $(echo $TODAY)
    7676user:      $(echo $USER)
     
    9595do
    9696        #Launch matlab and the daily run script
    97         cat > $ISSM_TIER/dailylog/matlab_run$i.m << EOF
     97        cat > $ISSM_DIR/dailylog/matlab_run$i.m << EOF
    9898        warning off %necessary to avoid a info.log of several Go for parallel runs
    9999        try,
    100         cd $ISSM_TIER/test/NightlyRun
     100        cd $ISSM_DIR/test/NightlyRun
    101101        startup;
    102102        $(if [ "$NROPTIONS" = ""  ]
     
    111111                directory=strsplit(pwd,'/');
    112112                message=getReport(me)
    113                 fid=fopen([ISSM_TIER '/dailylog/matlaberror.log'], 'at');
     113                fid=fopen([ISSM_DIR '/dailylog/matlaberror.log'], 'at');
    114114                fprintf(fid,'\nMatlab error occured in: %s\n\n',directory{end});
    115115                fprintf(fid,'%s',message);
     
    121121
    122122        #Start run from dailylog directory
    123         cd $ISSM_TIER/dailylog/
     123        cd $ISSM_DIR/dailylog/
    124124
    125125        #Start test
     
    132132#}}}
    133133#concatenate all reports {{{1
    134 cd $ISSM_TIER/dailylog/
     134cd $ISSM_DIR/dailylog/
    135135mv matlab_log1.log  matlab_log.log
    136136for (( i=2;i<=$NUMCPUS_RUN;i++ ))
     
    149149ELAPSED_RUN=$(timer $INSTALL_TIME)
    150150ELAPSED_TOTAL=$(timer $START_TIME)
    151 cat << END >>  $ISSM_TIER/dailylog/info.log
     151cat << END >>  $ISSM_DIR/dailylog/info.log
    152152elapsed_run:   $(echo $ELAPSED_RUN)
    153153elapsed_total: $(echo $ELAPSED_TOTAL)
     
    158158#Send Report
    159159#Build html report {{{1
    160 cd $ISSM_TIER/dailylog/
     160cd $ISSM_DIR/dailylog/
    161161sh ../scripts/report.sh
    162 ln -s $ISSM_TIER/dailylog/report.html $INIT_PATH
    163 echo "html report located in $ISSM_TIER/dailylog/report.html and $INIT_PATH/report.html"
     162ln -s $ISSM_DIR/dailylog/report.html $INIT_PATH
     163echo "html report located in $ISSM_DIR/dailylog/report.html and $INIT_PATH/report.html"
    164164#}}}
  • issm/trunk-jpl/scripts/getloc.sh

    r11241 r12159  
    11#!/bin/bash
    22#get number of lines of code
    3 cloc-1.55.pl $ISSM_TIER/src $ISSM_TIER/m4 --exclude-dir=.svn --exclude-ext=exp --exclude-lang=make --out=temp
     3cloc-1.55.pl $ISSM_DIR/src $ISSM_DIR/m4 --exclude-dir=.svn --exclude-ext=exp --exclude-lang=make --out=temp
    44cat temp
    55./cloc2html.py
    66rm temp
    77
    8 cat $ISSM_TIER/src/dox/issm.dox | sed '/<table/,//d' > input1
    9 cat $ISSM_TIER/src/dox/issm.dox | sed '1,/<\/table>/d' > input2
    10 cat input1 temp.html input2 > $ISSM_TIER/src/dox/issm.dox
     8cat $ISSM_DIR/src/dox/issm.dox | sed '/<table/,//d' > input1
     9cat $ISSM_DIR/src/dox/issm.dox | sed '1,/<\/table>/d' > input2
     10cat input1 temp.html input2 > $ISSM_DIR/src/dox/issm.dox
    1111rm input1 input2 temp.html
    1212
     
    1919#OLDER MANUAL VESION
    2020#get Matlab number of lines
    21 cd $ISSM_TIER/src/m
     21cd $ISSM_DIR/src/m
    2222M_LOC=$(find . -name "*.m" -exec wc -l '{}' \; | awk '{ sum += $1 } END { print sum}');
    2323echo "Matlab code: $M_LOC"
    2424
    2525#get C/CPP number of lines
    26 cd $ISSM_TIER/src
     26cd $ISSM_DIR/src
    2727CPP_LOC=$(find . -name "*.cpp" -exec wc -l '{}' \; | awk '{ sum += $1 } END { print sum}');
    2828echo "C++    code: $CPP_LOC"
  • issm/trunk-jpl/scripts/issmconfiguration.sh

    r11786 r12159  
    77presendir=`pwd`
    88
    9 if test -d "$ISSM_TIER/configs" ; then
    10         cd $ISSM_TIER/configs
     9if test -d "$ISSM_DIR/configs" ; then
     10        cd $ISSM_DIR/configs
    1111        LIST=`ls`
    1212       
     
    4040        echo ""
    4141
    42         cd $ISSM_TIER
     42        cd $ISSM_DIR
    4343        source ./scripts/automakererun.sh
    4444        source configs/$configurename
     
    5656
    5757
    58 #alias aut='a=`pwd` && cd $ISSM_TIER && ./scripts/automakererun.sh && ./configs/config-macosx64-larour-nopetsc.sh'
     58#alias aut='a=`pwd` && cd $ISSM_DIR && ./scripts/automakererun.sh && ./configs/config-macosx64-larour-nopetsc.sh'
  • issm/trunk-jpl/scripts/report.sh

    r11953 r12159  
    4949
    5050#create some variables
    51 if [ $(ls -1 $ISSM_TIER/bin | wc -l) -le 20 ];
     51if [ $(ls -1 $ISSM_DIR/bin | wc -l) -le 20 ];
    5252then
    5353        IS_INSTALL=0
  • issm/trunk-jpl/scripts/run.sh

    r6088 r12159  
    66MATLAB_VERSION="7.6" #7.2,7.4,7.6 and 7.8
    77#create softlink to startup {{{1
    8 cd $ISSM_TIER/test/NightlyRun/
    9 ln -s $ISSM_TIER/startup.m .
     8cd $ISSM_DIR/test/NightlyRun/
     9ln -s $ISSM_DIR/startup.m .
    1010#}}}
    1111
     
    1414do
    1515        #Launch matlab and the daily run script
    16         cat > $ISSM_TIER/dailylog/matlab_run$i.m << EOF
     16        cat > $ISSM_DIR/dailylog/matlab_run$i.m << EOF
    1717        warning off %necessary to avoid a daily.log of several Go for parallel runs
    1818        try,
    19                 cd $ISSM_TIER/test/NightlyRun
     19                cd $ISSM_DIR/test/NightlyRun
    2020                startup;
    2121                $(if [ "$NROPTIONS" = ""  ]
     
    3030                directory=strsplit(pwd,'/');
    3131                message=getReport(me)
    32                 fid=fopen([ISSM_TIER '/dailylog/matlaberror.log'], 'at');
     32                fid=fopen([ISSM_DIR '/dailylog/matlaberror.log'], 'at');
    3333                fprintf(fid,'\nMatlab error occured in: %s\n\n',directory{end});
    3434                fprintf(fid,'%s',message);
     
    3939
    4040        #Start run from dailylog directory
    41         cd $ISSM_TIER/dailylog/
     41        cd $ISSM_DIR/dailylog/
    4242
    4343        #Start test
  • issm/trunk-jpl/scripts/windowsbuild.sh

    r6555 r12159  
    1111today=`today_date`
    1212
    13 cd $ISSM_TIER/bin
     13cd $ISSM_DIR/bin
    1414
    1515#Filter out .svn files
Note: See TracChangeset for help on using the changeset viewer.