Changeset 12159
- Timestamp:
- 05/01/12 07:37:27 (13 years ago)
- Location:
- issm/trunk-jpl/scripts
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/scripts/GenerateReferences.sh
r8066 r12159 16 16 \begin{document} 17 17 \nocite{$CITE} 18 \bibliography{$ ISSM_DIR/publications/bibtex/references}18 \bibliography{$JPL_SVN/publications/bibtex/references} 19 19 \end{document} 20 20 END … … 29 29 mv references.bak2 references.bbl 30 30 echo "Converting to rtf" 31 $ISSM_ TIER/externalpackages/latex2rtf/install/latex2rtf -P $ISSM_TIER/externalpackages/latex2rtf/install/cfg/ references31 $ISSM_DIR/externalpackages/latex2rtf/install/latex2rtf -P $ISSM_DIR/externalpackages/latex2rtf/install/cfg/ references 32 32 33 33 #Remove all but rtf file -
issm/trunk-jpl/scripts/archive.sh
r6088 r12159 10 10 11 11 #Cleanup code 12 cd $ISSM_ TIER12 cd $ISSM_DIR 13 13 make clean 14 14 make distclean … … 18 18 19 19 #Create tar file, with today's date in the title; 20 cd $ISSM_ TIER/..20 cd $ISSM_DIR/.. 21 21 today=`today_date` 22 tar zcvf issm-3.0-$today.tar.gz `basename $ISSM_ TIER`22 tar zcvf issm-3.0-$today.tar.gz `basename $ISSM_DIR` -
issm/trunk-jpl/scripts/automakererun.sh
r10863 r12159 4 4 5 5 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" 7 AUTOCONF="$ISSM_DIR/externalpackages/autoconf/install/bin/autoconf" 8 AUTOHEAD="$ISSM_DIR/externalpackages/autoconf/install/bin/autoheader" 9 AUTOMAKE="$ISSM_DIR/externalpackages/automake/install/bin/automake" 10 10 11 11 echo "removing config.cach" -
issm/trunk-jpl/scripts/cloc2html.py
r11241 r12159 4 4 import sys, re, os 5 5 6 ISSM_ TIER=os.getenv('ISSM_TIER');7 if(not ISSM_ TIER): raise NameError('ISSM_TIER undefined')6 ISSM_DIR=os.getenv('ISSM_DIR'); 7 if(not ISSM_DIR): raise NameError('ISSM_DIR undefined') 8 8 9 9 infile = open('temp','r') -
issm/trunk-jpl/scripts/convertmatlabclasses.py
r11226 r12159 4 4 5 5 #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/'6 ISSM_DIR=os.getenv('ISSM_DIR'); 7 if(not ISSM_DIR): raise NameError('ISSM_DIR undefined') 8 newclassesdir = ISSM_DIR + '/src/m/classes/' 9 oldclassesdir = ISSM_DIR + '/src/m/oldclasses/' 10 10 11 11 #make new directory -
issm/trunk-jpl/scripts/dailyrun.sh
r6088 r12159 54 54 #Prepare run 55 55 #Windows hack for startup.m {{{1 56 #windows environments: ISSM_ TIER_WIN variable not correctly picked up when using57 #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: 58 58 if [ "$OS" = "winxp32" ] 59 59 then 60 cat startup.m | sed 's/clear status/clear status; ISSM_ TIER=pwd;/g' > startup.m.bak60 cat startup.m | sed 's/clear status/clear status; ISSM_DIR=pwd;/g' > startup.m.bak 61 61 mv startup.m.bak startup.m 62 62 fi 63 63 #}}} 64 64 #create softlink to startup {{{1 65 cd $ISSM_ TIER/test/NightlyRun/66 ln -s $ISSM_ TIER/startup.m .65 cd $ISSM_DIR/test/NightlyRun/ 66 ln -s $ISSM_DIR/startup.m . 67 67 #}}} 68 68 #Create dailylog directory and info.log {{{1 … … 70 70 INSTALL_TIME=$(timer) 71 71 ELAPSED_INSTALL=$(timer $START_TIME) 72 rm -rf $ISSM_ TIER/dailylog73 mkdir $ISSM_ TIER/dailylog74 cat << END > $ISSM_ TIER/dailylog/info.log72 rm -rf $ISSM_DIR/dailylog 73 mkdir $ISSM_DIR/dailylog 74 cat << END > $ISSM_DIR/dailylog/info.log 75 75 today: $(echo $TODAY) 76 76 user: $(echo $USER) … … 95 95 do 96 96 #Launch matlab and the daily run script 97 cat > $ISSM_ TIER/dailylog/matlab_run$i.m << EOF97 cat > $ISSM_DIR/dailylog/matlab_run$i.m << EOF 98 98 warning off %necessary to avoid a info.log of several Go for parallel runs 99 99 try, 100 cd $ISSM_ TIER/test/NightlyRun100 cd $ISSM_DIR/test/NightlyRun 101 101 startup; 102 102 $(if [ "$NROPTIONS" = "" ] … … 111 111 directory=strsplit(pwd,'/'); 112 112 message=getReport(me) 113 fid=fopen([ISSM_ TIER '/dailylog/matlaberror.log'], 'at');113 fid=fopen([ISSM_DIR '/dailylog/matlaberror.log'], 'at'); 114 114 fprintf(fid,'\nMatlab error occured in: %s\n\n',directory{end}); 115 115 fprintf(fid,'%s',message); … … 121 121 122 122 #Start run from dailylog directory 123 cd $ISSM_ TIER/dailylog/123 cd $ISSM_DIR/dailylog/ 124 124 125 125 #Start test … … 132 132 #}}} 133 133 #concatenate all reports {{{1 134 cd $ISSM_ TIER/dailylog/134 cd $ISSM_DIR/dailylog/ 135 135 mv matlab_log1.log matlab_log.log 136 136 for (( i=2;i<=$NUMCPUS_RUN;i++ )) … … 149 149 ELAPSED_RUN=$(timer $INSTALL_TIME) 150 150 ELAPSED_TOTAL=$(timer $START_TIME) 151 cat << END >> $ISSM_ TIER/dailylog/info.log151 cat << END >> $ISSM_DIR/dailylog/info.log 152 152 elapsed_run: $(echo $ELAPSED_RUN) 153 153 elapsed_total: $(echo $ELAPSED_TOTAL) … … 158 158 #Send Report 159 159 #Build html report {{{1 160 cd $ISSM_ TIER/dailylog/160 cd $ISSM_DIR/dailylog/ 161 161 sh ../scripts/report.sh 162 ln -s $ISSM_ TIER/dailylog/report.html $INIT_PATH163 echo "html report located in $ISSM_ TIER/dailylog/report.html and $INIT_PATH/report.html"162 ln -s $ISSM_DIR/dailylog/report.html $INIT_PATH 163 echo "html report located in $ISSM_DIR/dailylog/report.html and $INIT_PATH/report.html" 164 164 #}}} -
issm/trunk-jpl/scripts/getloc.sh
r11241 r12159 1 1 #!/bin/bash 2 2 #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=temp3 cloc-1.55.pl $ISSM_DIR/src $ISSM_DIR/m4 --exclude-dir=.svn --exclude-ext=exp --exclude-lang=make --out=temp 4 4 cat temp 5 5 ./cloc2html.py 6 6 rm temp 7 7 8 cat $ISSM_ TIER/src/dox/issm.dox | sed '/<table/,//d' > input19 cat $ISSM_ TIER/src/dox/issm.dox | sed '1,/<\/table>/d' > input210 cat input1 temp.html input2 > $ISSM_ TIER/src/dox/issm.dox8 cat $ISSM_DIR/src/dox/issm.dox | sed '/<table/,//d' > input1 9 cat $ISSM_DIR/src/dox/issm.dox | sed '1,/<\/table>/d' > input2 10 cat input1 temp.html input2 > $ISSM_DIR/src/dox/issm.dox 11 11 rm input1 input2 temp.html 12 12 … … 19 19 #OLDER MANUAL VESION 20 20 #get Matlab number of lines 21 cd $ISSM_ TIER/src/m21 cd $ISSM_DIR/src/m 22 22 M_LOC=$(find . -name "*.m" -exec wc -l '{}' \; | awk '{ sum += $1 } END { print sum}'); 23 23 echo "Matlab code: $M_LOC" 24 24 25 25 #get C/CPP number of lines 26 cd $ISSM_ TIER/src26 cd $ISSM_DIR/src 27 27 CPP_LOC=$(find . -name "*.cpp" -exec wc -l '{}' \; | awk '{ sum += $1 } END { print sum}'); 28 28 echo "C++ code: $CPP_LOC" -
issm/trunk-jpl/scripts/issmconfiguration.sh
r11786 r12159 7 7 presendir=`pwd` 8 8 9 if test -d "$ISSM_ TIER/configs" ; then10 cd $ISSM_ TIER/configs9 if test -d "$ISSM_DIR/configs" ; then 10 cd $ISSM_DIR/configs 11 11 LIST=`ls` 12 12 … … 40 40 echo "" 41 41 42 cd $ISSM_ TIER42 cd $ISSM_DIR 43 43 source ./scripts/automakererun.sh 44 44 source configs/$configurename … … 56 56 57 57 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 49 49 50 50 #create some variables 51 if [ $(ls -1 $ISSM_ TIER/bin | wc -l) -le 20 ];51 if [ $(ls -1 $ISSM_DIR/bin | wc -l) -le 20 ]; 52 52 then 53 53 IS_INSTALL=0 -
issm/trunk-jpl/scripts/run.sh
r6088 r12159 6 6 MATLAB_VERSION="7.6" #7.2,7.4,7.6 and 7.8 7 7 #create softlink to startup {{{1 8 cd $ISSM_ TIER/test/NightlyRun/9 ln -s $ISSM_ TIER/startup.m .8 cd $ISSM_DIR/test/NightlyRun/ 9 ln -s $ISSM_DIR/startup.m . 10 10 #}}} 11 11 … … 14 14 do 15 15 #Launch matlab and the daily run script 16 cat > $ISSM_ TIER/dailylog/matlab_run$i.m << EOF16 cat > $ISSM_DIR/dailylog/matlab_run$i.m << EOF 17 17 warning off %necessary to avoid a daily.log of several Go for parallel runs 18 18 try, 19 cd $ISSM_ TIER/test/NightlyRun19 cd $ISSM_DIR/test/NightlyRun 20 20 startup; 21 21 $(if [ "$NROPTIONS" = "" ] … … 30 30 directory=strsplit(pwd,'/'); 31 31 message=getReport(me) 32 fid=fopen([ISSM_ TIER '/dailylog/matlaberror.log'], 'at');32 fid=fopen([ISSM_DIR '/dailylog/matlaberror.log'], 'at'); 33 33 fprintf(fid,'\nMatlab error occured in: %s\n\n',directory{end}); 34 34 fprintf(fid,'%s',message); … … 39 39 40 40 #Start run from dailylog directory 41 cd $ISSM_ TIER/dailylog/41 cd $ISSM_DIR/dailylog/ 42 42 43 43 #Start test -
issm/trunk-jpl/scripts/windowsbuild.sh
r6555 r12159 11 11 today=`today_date` 12 12 13 cd $ISSM_ TIER/bin13 cd $ISSM_DIR/bin 14 14 15 15 #Filter out .svn files
Note:
See TracChangeset
for help on using the changeset viewer.