Ignore:
Timestamp:
Mar 4, 2014 7:12:34 AM (11 years ago)
Author:
raasch
Message:

script comments translated to English
version update to 3.10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mbuild

    r1275 r1289  
    2222# Current revisions:
    2323# ------------------
    24 #
     24# comments translated from German to English
     25# fimm-, scirocco-, ibmy-, and sgi-specific code removed
    2526#
    2627# Former revisions:
     
    8586 compile_utility_programs=false
    8687 config_file=.mrun.config
    87  fimm=false
    8888 host=all
    8989 host_found=false
     
    9292 module_calls=""
    9393 util_compiled_localhost=false
    94  scirocco=false
    9594 silent=false
    9695 suf=f90
     
    189188
    190189
    191 
    192  [[ $local_host_real_name = scirocco ]]  &&  scirocco=true
    193  [[ $local_host_real_name = fimm.bccs.uib.no ]]  &&  fimm=true
    194 
    195 
    196 
    197190 if [[ $local_host != ibms ]]
    198191 then
     
    203196
    204197
    205     # determine the block conditions
     198    # DETERMINE THE BLOCK CONDITIONS
    206199 if [[ $block_conditions != none ]]
    207200 then
     
    422415
    423416   
    424     # GENERIERUNG DER AKTUELLEN MODELLVERSION FUER ALLE RECHNER-/UEBERSETZUNGS-
    425     # VERSIONEN, DIE IN DER KONFIGURATIONSDATEI GEFUNDEN WERDEN
     417    # GENERATE MODEL-VERSIONS FOR ALL HOST-BLOCKS
     418    # FOUND IN THE CONFIGURATION-FILE
    426419 printf "\n  *** scanning configuration file for host(s) ..."
    427420
     
    429422 while read line
    430423 do
    431        # KOMMENTARZEILEN UEBERSPRINGEN
     424       # SKIP COMMENT-LINES
    432425    [[ $(echo $line | cut -c1) = "#" ]]  &&  continue
    433426    (( ihost = ihost + 1 ))
     
    441434    (( ih = ih + 1 ))
    442435
    443        # determine remote host and conditions for the respective block
    444        # continue, only if this host has been chosen via -h option and if
    445        # conditions have been chosen via -K option
     436       # DETERMINE REMOTE HOST AND CONDITIONS FOR THE RESPECTIVE BLOCK
     437       # CONTINUE, ONLY IF THIS HOST HAS BEEN CHOSEN VIA -h OPTION AND IF
     438       # CONDITIONS HAVE BEEN CHOSEN VIA -K OPTION
    446439    remote_host_string=`echo ${hostline[$ih]} | cut -d" " -s -f3-`
    447440    remote_host=`echo $remote_host_string | cut -d" " -f1`
     
    475468    make_options=""
    476469
    477        # IP-ADRESSE DES REMOTE-RECHNERS BESTIMMEN
     470       # DETERMINE IP-ADDRES OF THE REMOTE-HOST
    478471    case  $remote_host  in
    479472        (lccrayb)        remote_addres=130.73.233.1;;
     
    484477        (lcrte)          remote_addres=133.5.185.60;;
    485478        (lcsb)           remote_addres=147.46.30.151;;
    486         (lcsgib)         remote_addres=130.73.232.102;;
    487         (lcsgih)         remote_addres=130.75.4.101;;
    488479        (lck)            remote_addres=165.132.26.61;;
    489480        (lckiaps)        remote_addres=118.128.66.223;;
     
    496487        (ibmku)          remote_addres=133.5.4.129;;
    497488        (ibms)           remote_addres=150.183.5.101;;
    498         (ibmy)           remote_addres=165.132.26.58;;
    499489        (nech)           remote_addres=136.172.44.192;;
    500490        (neck)           remote_addres=133.5.178.11;;
     
    509499
    510500
    511        # REMOTE-USERNAMEN ERMITTELN
     501       # DETERMINE REMOTE-USERNAME
    512502    line=""
    513503    found=false
     
    537527
    538528
    539        # REMOTE-QUELLTEXTPFAD ERMITTELN
     529       # DETERMINE REMOTE-SOURCE-CODE-PATH
    540530    line=""
    541531    remote_source_path=""
     
    572562
    573563
    574        # REMOTE-PFAD FUER MAKE-DEPOSITORY ERMITTELN
     564       # DETERMINE REMOTE-PATH FOR MAKE-DEPOSITORY
    575565    remote_md=""
    576566    line=""
     
    611601
    612602
    613        # COMPILERNAMEN ERMITTELN
     603       # DETERMINE COMPILERNAME
    614604    line=""
    615605    found=false
     
    639629
    640630
    641        # BEI BENUTZUNG EINES PARALLELEN COMPILERS MUSS AUCH EIN
    642        # SERIELLER COMPILERNAME ERMITTELT WERDEN
     631       # IN CASE OF PARALLEL EXECUTION (COMPILER FOR PARALLEL EXECUTION),
     632       # A SERIAL COMPILERNAME MUST BE DETERMINED ALSO
    643633    if [[ $(echo $remote_host_string | grep -c parallel) = 1 ]]
    644634    then
     
    674664
    675665
    676        # PRAEPROZESSOR-OPTIONEN/DIREKTIVEN ERMITTELN
     666       # DETERMINE PREPROCESSOR-OPTIONS AND DIRECTIVES
    677667    line=""
    678668    found=false
     
    688678       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    689679       then
    690              # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN
     680             # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY
    691681          cpp_options=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'`
    692682          found=true
     
    703693
    704694
    705        # RECHNERSPEZIFISCHE CPP-DIREKTIVEN HINZUFUEGEN
     695       # ADD HOST-SPECIFIC PREPROCESSOR-DIRECTIVES
    706696    for  string  in  $remote_host_string
    707697    do
     
    727717
    728718
    729        # get netCDF options
     719       # GET netCDF OPTIONS
    730720    line=""
    731721    grep  "$remote_host_string" $config_file | grep "%netcdf_inc"  >  $tmp_mbuild
     
    740730       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    741731       then
    742              # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN
     732             # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY
    743733          netcdf_inc=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'`
    744734       fi
     
    758748       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    759749       then
    760              # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN
     750             # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY
    761751          netcdf_lib=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'`
    762752       fi
     
    766756
    767757
    768        # get fftw options
     758       # GET FFTW OPTIONS
    769759    line=""
    770760    grep  "$remote_host_string" $config_file | grep "%fftw_inc"  >  $tmp_mbuild
     
    779769       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    780770       then
    781              # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN
     771             # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY
    782772          fftw_inc=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'`
    783773       fi
     
    797787       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    798788       then
    799              # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN
     789             # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY
    800790          fftw_lib=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'`
    801791       fi
     
    805795
    806796
    807        # get make options
     797       # GET MAKE OPTIONS
    808798    line=""
    809799    found=false
     
    819809       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    820810       then
    821              # remove colons from directive string
     811             # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY
    822812          make_options=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'`
    823813
     
    828818
    829819
    830        # COMPILEROPTIONEN ERMITTELN
     820       # GET COMPILER OPTIONS
    831821    line=""
    832822    found=false
     
    842832       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    843833       then
    844              # EVENTUELLE DOPPELPUNKTE AUS DIREKTIVENSTRING ENTFERNEN
     834             # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY
    845835          compiler_options=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'`
    846836          found=true
    847837
    848              # add include paths for netCDF and fftw
     838             # ADD INCLUDE PATHS FOR netCDF AND FFTW
    849839          compiler_options="$compiler_options $netcdf_inc $fftw_inc"
    850840       fi
     
    860850
    861851
    862        # get login init commands, "::" is replacing a space
     852       # GET LOGIN INIT COMMANDS
    863853    line=""
    864854    grep  "$remote_host_string" $config_file | grep "%login_init_cmd"  >  $tmp_mbuild
     
    873863       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    874864       then
    875              # EVENTUELLE DOPPELPUNKTE AUS DIREKTIVENSTRING ENTFERNEN
     865             # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY
    876866          init_cmds=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'`
    877867          init_cmds="${init_cmds};"
     
    880870
    881871
    882        # get modules to be loaded
     872       # GET MODULES TO BE LOADED
    883873    line=""
    884874    grep  "$remote_host_string" $config_file | grep "%modules"  >  $tmp_mbuild
     
    893883       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    894884       then
    895              # EVENTUELLE DOPPELPUNKTE AUS DIREKTIVENSTRING ENTFERNEN
     885             # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY
    896886          modules=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'`
    897887       fi
     
    900890
    901891
    902        # LADER-OPTIONEN ERMITTELN
     892       # GET LINKER OPTIONS
    903893    line=""
    904894    found=false
     
    914904       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    915905       then
    916              # EVENTUELLE DOPPELPUNKTE AUS DIREKTIVENSTRING ENTFERNEN
     906             # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY
    917907          loader_options=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'`
    918908          found=true
    919909
    920              # add netCDF- and fftw-library
     910             # ADD netCDF- AND FFTW-LIBRARY
    921911          loader_options="$loader_options $netcdf_lib $fftw_lib"
    922912       fi
     
    10431033
    10441034
    1045        # make on remote host
     1035       # MAKE ON REMOTE HOST
    10461036    if [[ $remote_host != $local_host ]]
    10471037    then
     
    10491039       then
    10501040
    1051              # AKTUELLE QUELLTEXTVERSION INS REMOTE-QUELLTEXTVERZEICHNIS KOPIEREN
    1052              # FALLS DIESES NOCH NICHT EXISTIERT, WIRD ES ERZEUGT
     1041             # COPY CURRENT SOURCE CODE TO SOURCE-CODE DIRECTORY ON THE REMOTE HOST
     1042             # CREATE THIS DIRECTORY, IF IT DOES NOT EXIST
    10531043          echo "  *** copying \"${mainprog}_sources.tar\" to \"${remote_addres}:${remote_md}/\" "
    10541044          if [[ $remote_host != lctit ]]
     
    10561046             ssh  ${remote_username}@${remote_addres} "[[ ! -d ${remote_md} ]]  &&  (echo \"  *** ${remote_md} will be created\"; mkdir -p  ${remote_md})"
    10571047          else
    1058                 # TIT ERLAUBT NUR DIE AUSFï¿œHRUNG GANZ BESTIMMTER KOMMANDOS
    1059                 # MIT SSH, DESHALB AUFRUF PER PIPE
     1048                # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS
    10601049             print "[[ ! -d ${remote_md} ]]  &&  (echo \"  *** ${remote_md} will be created\"; mkdir -p  ${remote_md})"  |  ssh ${remote_username}@${remote_addres}  2>&1
    10611050          fi
     
    10651054
    10661055
    1067              # FALLS VORHANDEN, LETZTE VERSION AUF DEM REMOTE-RECHNER AUSPACKEN
     1056             # UNTAR PREVIOUS UPDATE ON REMOTE HOST, IF EXISTING
    10681057          echo "  *** untar previous update on remote host, if existing"
    10691058          if [[ $remote_host != lctit ]]
     
    10711060             ssh  ${remote_username}@${remote_addres}  "cd ${remote_md}; [[ -f ${mainprog}_current_version.tar ]]  &&  tar -xf  ${mainprog}_current_version.tar"
    10721061          else
    1073                 # TIT ERLAUBT NUR DIE AUSFï¿œHRUNG GANZ BESTIMMTER KOMMANDOS
    1074                 # MIT SSH, DESHALB AUFRUF PER PIPE
     1062                # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS
    10751063             print  "cd ${remote_md}; [[ -f ${mainprog}_current_version.tar ]]  &&  tar -xf  ${mainprog}_current_version.tar"  |  ssh  ${remote_username}@${remote_addres}  2>&1
    10761064          fi
    10771065
    10781066
    1079              # AKTUELLE QUELLTEXTVERSION AUF REMOTE-RECHNER AUSPACKEN
    1080           echo "  *** untar actual sources on remote host"
     1067             # UNTAR CURRENT SOURCES ON REMOTE HOST
     1068          echo "  *** untar current sources on remote host"
    10811069          if [[ $remote_host != lctit ]]
    10821070          then
    10831071             ssh  ${remote_username}@${remote_addres}  "cd ${remote_md}; tar -xf  ${mainprog}_sources.tar"
    10841072          else
    1085                 # TIT ERLAUBT NUR DIE AUSFï¿œHRUNG GANZ BESTIMMTER KOMMANDOS
    1086                 # MIT SSH, DESHALB AUFRUF PER PIPE
     1073                # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS
    10871074             print  "cd ${remote_md}; tar -xf  ${mainprog}_sources.tar"  |  ssh  ${remote_username}@${remote_addres}  2>&1
    10881075          fi
    10891076
    10901077
    1091              # MAKE MIT ZUVOR ERMITTELTEN OPTIONEN AUF REMOTE RECHNER AUSFUEHREN
    1092              # KOMMANDOUEBERGABE AN SSH PER PIPE, DA SO DIE SYSTEM- UND
    1093              # BENUTZERPROFILE VOLLSTAENDIG AUSGEFUEHRT WERDEN (SONST FEHLEN MAKE
    1094              # Z.B. DIE PFADE ZUM COMPILER)
     1078             # EXECUTE MAKE WITH THOSE OPTIONS DETERMINED ABOVE
     1079             # COMMANDS WILL BE COMMUNICATED TO SSH VIA PIPE, SINCE THIS WAY THE SYSTEM- AND
     1080             # USER-PROFILES OF THE SHELL ARE COMPLETELY EXECUTED (OTHERWISE, MAKE
     1081             # WILL E.G. MISS THE COMPILER-PATHS)
    10951082          echo "  *** execute \"make\" on remote host"
    10961083
    10971084
    1098              # generate make call with make options
     1085             # GENERATE MAKE CALL WITH MAKE OPTIONS
    10991086          if [[ $remote_host = nech ]]
    11001087          then
     
    11041091          fi
    11051092
    1106              # generate command to load modules, if modules are given
     1093             # GENERATE COMMAND TO LOAD MODULES, IF MODULES ARE GIVEN
    11071094          if [[ "$modules" != "" ]]
    11081095          then
     
    11131100                module_calls="module load ${modules};"
    11141101             fi
    1115 
    1116                 # bugfix for wrong netcdf module
    1117              if [[ $remote_host = lcsgib  ||  $remote_host = lcsgih ]]
    1118              then
    1119                 if [[ $(echo $module_calls | grep -c netcdf/3.6.3-intel) != 0 ]]
    1120                 then
    1121                    module_calls="$module_calls export LD_LIBRARY_PATH=/sw/dataformats/netcdf/3.6.3-intel/lib:\$LD_LIBRARY_PATH;"
    1122                 fi
    1123              fi
    11241102          else
    11251103             module_calls=""
    11261104          fi
    11271105
    1128           if [[ $remote_host = ibmkisti  ||  $remote_host = ibms  ||  $remote_host = ibmy ]]
     1106          if [[ $remote_host = ibmkisti  ||  $remote_host = ibms ]]
    11291107          then
    11301108
     
    11351113
    11361114             print "$init_cmds $module_calls export OBJECT_MODE=64; cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh  ${remote_username}@${remote_addres} 2>&1 | tee ${remote_host}_last_make_protokoll
    1137 
    1138           elif [[ $remote_host = lcsgib  ||  $remote_host = lcsgih ]]
    1139           then
    1140 #             print ". /usr/share/modules/init/bash; $module_calls  cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh  ${remote_username}@${remote_addres} 2>&1 | tee ${remote_host}_last_make_protokoll
    1141              print "$init_cmds $module_calls cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh  ${remote_username}@${remote_addres} 2>&1 | tee ${remote_host}_last_make_protokoll
    11421115
    11431116          elif [[ $remote_host = lctit ]]
     
    11861159
    11871160
    1188              # NEUE VERSION AUF REMOTE-RECHNER ZUSAMMENPACKEN
     1161             # TAR UPDATED VERSION ON THE REMOTE HOST
    11891162          printf "\n  *** tar update on remote host ..."
    11901163          if [[ $remote_host != lctit ]]
     
    11921165             ssh  ${remote_username}@${remote_addres}  "cd ${remote_md}; chmod u+w *; tar -cf  ${mainprog}_current_version.tar  ${mainprog}  *.f90 *.o *.mod"
    11931166          else
    1194                 # TIT ERLAUBT NUR DIE AUSFï¿œHRUNG GANZ BESTIMMTER KOMMANDOS
    1195                 # MIT SSH, DESHALB AUFRUF PER PIPE
     1167                # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS
    11961168             print  "cd ${remote_md}; chmod u+w *; tar -cf  ${mainprog}_current_version.tar  ${mainprog}  *.f90 *.o *.mod"  |  ssh  ${remote_username}@${remote_addres}  2>&1
    11971169          fi
    11981170
    11991171
    1200              # AKTUELLES VERSIONSVERZEICHNIS AUF REMOTE-RECHNER BEREINIGEN
    1201 #          printf "\n  *** \"make clean\" on remote host ..."
    1202 #          ssh  ${remote_username}@${remote_addres}  "cd ${remote_md}; make clean; rm ${mainprog}_sources.tar; rm *.f90 Makefile"
    1203 #          printf "\n"
    1204 
    1205 
    1206 
    1207 
    1208           # GLEICHE AKTIONEN FUER DIE UTILITY-PROGRAMME DURCHFUEHREN
    1209           # AKTUELLE QUELLTEXTVERSION INS REMOTE-QUELLTEXTVERZEICHNIS KOPIEREN
    1210           # FALLS DIESES NOCH NICHT EXISTIERT, WIRD ES ERZEUGT
     1172
     1173          # DO THE SAME THINGS FOR THE UTILITY-ROUTINES:
     1174          # COPY CURRENT SOURCE CODE TO SOURCE-CODE DIRECTORY ON THE REMOTE HOST
     1175          # CREATE THIS DIRECTORY, IF IT DOES NOT EXIST
    12111176       elif [[ $compile_utility_programs = true ]]
    12121177       then
     
    12201185             ssh  ${remote_username}@${remote_addres} "[[ ! -d ${remote_ud} ]]  &&  (echo \"  *** ${remote_ud} will be created\"; mkdir -p  ${remote_ud}); [[ ! -d ${remote_ud}/../SCRIPTS ]]  &&  (echo \"  *** ${remote_ud}/../SCRIPTS will be created\"; mkdir -p ${remote_ud}/../SCRIPTS)"
    12211186          else
    1222                 # TIT ERLAUBT NUR DIE AUSFUEHRUNG GANZ BESTIMMTER KOMMANDOS
    1223                 # MIT SSH, DESHALB AUFRUF PER PIPE
     1187                # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS
    12241188             print "[[ ! -d ${remote_ud} ]]  &&  (echo \"  *** ${remote_ud} will be created\"; mkdir -p  ${remote_ud}); [[ ! -d ${remote_ud}/../SCRIPTS ]]  &&  (echo \"  *** ${remote_ud}/../SCRIPTS will be created\"; mkdir -p  ${remote_ud}/../SCRIPTS)"  |  ssh ${remote_username}@${remote_addres}  2>&1
    12251189          fi
    12261190
    1227              # KOPIEREN DER SCRIPTE
     1191             # COPY SHELL-SCRIPTS
    12281192          scp  batch_scp mbuild mrun process_dvr_output .dvrserver.config subjob batch_nc2vdf nc2vdf nc2vdf.ncl nc2vdf.config ${remote_username}@${remote_addres}:${remote_ud}/../SCRIPTS  >  /dev/null
    12291193
     
    12321196
    12331197
    1234              # KOPIEREN DER UTILITY-PROGRAMME
     1198             # COPY UTILITY-ROUTINES
    12351199          scp  Makefile  *.f90  ${remote_username}@${remote_addres}:${remote_ud}  >  /dev/null
    12361200
    12371201
    12381202
    1239              # MAKE MIT ZUVOR ERMITTELTEN OPTIONEN AUF REMOTE RECHNER AUSFUEHREN
    1240              # KOMMANDOUEBERGABE AN SSH PER PIPE, DA SO DIE SYSTEM- UND
    1241              # BENUTZERPROFILE VOLLSTAENDIG AUSGEFUEHRT WERDEN (SONST FEHLEN MAKE
    1242              # Z.B. DIE PFADE ZUM COMPILER)
     1203             # EXECUTE MAKE WITH THOSE OPTIONS DETERMINED ABOVE
     1204             # COMMANDS WILL BE COMMUNICATED TO SSH VIA PIPE, SINCE THIS WAY THE SYSTEM- AND
     1205             # USER-PROFILES OF THE SHELL ARE COMPLETELY EXECUTED (OTHERWISE, MAKE
     1206             # WILL E.G. MISS THE COMPILER-PATHS)
    12431207          echo "  *** execute \"make\" on remote host"
    12441208
     
    12501214          fi
    12511215
    1252              # generate command to load modules, if modules are given
     1216             # GENERATE COMMAND TO LOAD MODULES, IF MODULES ARE GIVEN
    12531217          if [[ "$modules" != "" ]]
    12541218          then
     
    12591223                module_calls="module load ${modules};"
    12601224             fi
    1261 
    1262                 # bugfix for wrong netcdf module
    1263              if [[ $remote_host = lcsgib  ||  $remote_host = lcsgih ]]
    1264              then
    1265                 if [[ $(echo $module_calls | grep -c netcdf/3.6.3-intel) != 0 ]]
    1266                 then
    1267                    module_calls="$module_calls export LD_LIBRARY_PATH=/sw/dataformats/netcdf/3.6.3-intel/lib:\$LD_LIBRARY_PATH;"
    1268                 fi
    1269              fi
    12701225          else
    12711226             module_calls=""
     
    12731228
    12741229
    1275           if [[ $remote_host = ibms  ||  $remote_host = ibmy ]]
     1230          if [[ $remote_host = ibms ]]
    12761231          then
    12771232
     
    13031258          fi
    13041259
    1305        fi    # ENDE UEBERSETZUNG DER UTILITY-PROGRAMME
     1260       fi    # END OF COMPILING UTILITY-ROUTINES
    13061261
    13071262       rm -rf  ${remote_host}_last_make_protokoll
    13081263
    1309        # make on local host
     1264       # MAKE ON LOCAL HOST
    13101265    else
    13111266
    1312           # workaround for lcxe6
     1267          # INIT WORKAROUND FOR lcxe6
    13131268       if [[ $remote_host = lcxe6  ||  $remote_host = lccrayb  ||  $remote_host = lccrayf ||  $remote_host = lccrayh ]]
    13141269       then
     
    13181273       fi
    13191274
    1320        # first load modules, if given
     1275       # FIRST LOAD MODULES, IF GIVEN
    13211276       if [[ "$modules" != "" ]]
    13221277       then
     
    13361291       then
    13371292
    1338              # DEPOSITORY VERZEICHNIS ERZEUGEN, FALLS NOCH NICHT VORHANDEN
     1293             # CREATE MAKE-DEPOSITORY, IF IT DOES NOT EXIST
    13391294          eval remote_md=$remote_md
    13401295          if [[ ! -d $remote_md ]]
     
    13531308          fi
    13541309
    1355              # QUELLTEXT-DATEIEN AUS REPOSITORY INS DEPOSITORY KOPIEREN
     1310             # COPY SOURCE-CODE FROM REPOSITORY TO MAKE-DEPOSITORY
    13561311          echo " "
    13571312          echo "  *** updating sources in $remote_md"
     
    13601315          tar xf  ${mainprog}_sources.tar
    13611316
    1362              # MAKE MIT ZUVOR ERMITTELTEN OPTIONEN AUF LOKALEM RECHNER AUSFUEHREN
     1317             # CALL MAKE ON LOCAL HOST USING THE  OPTIONS DETERMINED FURTHER ABOVE
    13631318          echo " "
    13641319          echo "  *** execute \"make\" on local host"
     
    14231378             fi
    14241379
    1425              # COMPILE CHECK_NAMELIST_FILES (ONLY FOR ONE BRANCH on LOCALHOST NEEDED)
    1426 
     1380                # COMPILE CHECK_NAMELIST_FILES (ONLY FOR ONE BRANCH on LOCALHOST NEEDED)
    14271381             printf "\n\n"
    14281382             echo "  *** compiling check_namelist_files ..."
    14291383
    1430              # GET CHECK OPTIONS
     1384                # GET CHECK OPTIONS
    14311385             line=""
    14321386             found=false
     
    14421396                if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    14431397                then
    1444                    # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING UND ALLE -D ENTFERNEN
     1398                      # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY
    14451399                   line="$line "
    14461400                   copts_check=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g' | sed 's/-D[^ ]* //g' | sed 's/ -D.*//g'`
     
    14981452 rm -f  hosts_found_in_config_file
    14991453 rm -f ${local_source_path}/${mainprog}_sources_check.tar
    1500 
Note: See TracChangeset for help on using the changeset viewer.