Changeset 892 for palm/trunk/SCRIPTS/mbuild
- Timestamp:
- May 2, 2012 1:51:44 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mbuild
r818 r892 130 130 # 08/03/12 - BjornM- bugfix: cpp directive for namelist check program 131 131 # corrected 132 132 # 02/05/12 - Bjoern - lcxt4 is now lcxe6, adjustments for lcxe6, 133 # bugfixes for the parameter file check, initial 134 # commands on ssh calls sourced out to .mrun.config 133 135 134 136 … … 511 513 (lck) remote_addres=165.132.26.61;; 512 514 (lctit) remote_addres=10.1.6.170;; 513 (lcx t4) remote_addres=129.177.20.113;;515 (lcxe6) remote_addres=129.177.20.113;; 514 516 (lcxt5m) remote_addres=193.166.211.144;; 515 517 (decalpha) remote_addres=165.132.26.56;; … … 842 844 843 845 846 # get login init commands, "::" is replacing a space 847 line="" 848 grep "$remote_host_string" $config_file | grep "%login_init_cmd" > $tmp_mbuild 849 while read line1 850 do 851 852 if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]] 853 then 854 line="$line1" 855 fi 856 857 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 858 then 859 # EVENTUELLE DOPPELPUNKTE AUS DIREKTIVENSTRING ENTFERNEN 860 init_cmds=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 861 fi 862 init_cmds="${init_cmds};" 863 done < $tmp_mbuild 864 844 865 845 866 # get modules to be loaded … … 861 882 862 883 done < $tmp_mbuild 863 864 865 884 866 885 … … 1011 1030 if [[ $remote_host != $local_host ]] 1012 1031 then 1013 1014 1032 if [[ $compile_utility_programs = false ]] 1015 1033 then … … 1103 1121 then 1104 1122 1105 ssh ${remote_username}@${remote_addres} "$ 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" 2>&1 | tee ${remote_host}_last_make_protokoll1123 ssh ${remote_username}@${remote_addres} "$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" 2>&1 | tee ${remote_host}_last_make_protokoll 1106 1124 1107 1125 elif [[ $remote_host = ibmh ]] 1108 1126 then 1109 1127 1110 print "$ 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_protokoll1128 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 1111 1129 1112 1130 elif [[ $remote_host = lcsgib || $remote_host = lcsgih ]] 1113 1131 then 1114 1115 1132 # 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 1116 print " eval \`/sw/swdist/bin/modulesinit\`; $module_callscd ${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_protokoll1133 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 1117 1134 1118 1135 elif [[ $remote_host = lctit ]] … … 1125 1142 done 1126 1143 1127 elif [[ $remote_host = lcx t4]]1128 then 1129 1130 ssh ${remote_username}@${remote_addres} " . /opt/modules/default/init/ksh; $module_callscd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" 2>&1 | tee ${remote_host}_last_make_protokoll1131 1132 else 1133 1134 print " cd $module_calls${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_protokoll1144 elif [[ $remote_host = lcxe6 ]] 1145 then 1146 1147 ssh ${remote_username}@${remote_addres} "$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" 2>&1 | tee ${remote_host}_last_make_protokoll 1148 1149 else 1150 1151 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 1135 1152 1136 1153 fi … … 1265 1282 fi 1266 1283 1284 1267 1285 if [[ $remote_host = ibms || $remote_host = ibmy ]] 1268 1286 then 1269 1287 1270 ssh ${remote_username}@${remote_addres} "$ module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR"1288 ssh ${remote_username}@${remote_addres} "$init_cmds $module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" 1271 1289 1272 1290 elif [[ $remote_host = ibmh ]] 1273 1291 then 1274 1292 1275 print "$ module_calls export OBJECT_MODE=64; cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres}1293 print "$init_cmds $module_calls export OBJECT_MODE=64; cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres} 1276 1294 1277 1295 elif [[ $remote_host = lctit ]] … … 1281 1299 while [[ $(cat ${remote_host}_last_make_protokoll | grep -c "Forwarding to N1GE") = 0 ]] 1282 1300 do 1283 print "$ module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres} 2>&1 | tee ${remote_host}_last_make_protokoll1301 print "$init_cmds $module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres} 2>&1 | tee ${remote_host}_last_make_protokoll 1284 1302 done 1285 1303 1286 elif [[ $remote_host = lcx t4]]1287 then 1288 1289 ssh ${remote_username}@${remote_addres} " . /opt/modules/default/init/ksh;$module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" 2>&1 | tee ${remote_host}_last_make_protokoll1290 1291 else 1292 1293 print "$ module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres} 2>&1 | tee ${remote_host}_last_make_protokoll1304 elif [[ $remote_host = lcxe6 ]] 1305 then 1306 1307 ssh ${remote_username}@${remote_addres} "$init_cmds $module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" 2>&1 | tee ${remote_host}_last_make_protokoll 1308 1309 else 1310 1311 print "$init_cmds $module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres} 2>&1 | tee ${remote_host}_last_make_protokoll 1294 1312 1295 1313 fi … … 1302 1320 else 1303 1321 1304 # workaround for lcx t41305 if [[ $remote_host = lcx t4]]1306 then 1307 . /opt/modules/default/init/ksh1322 # workaround for lcxe6 1323 if [[ $remote_host = lcxe6 ]] 1324 then 1325 $init_cmds 1308 1326 fi 1309 1327 … … 1415 1433 echo " *** compiling check_namelist_files ..." 1416 1434 1435 # GET CHECK OPTIONS 1436 line="" 1437 found=false 1438 grep "$remote_host_string" $config_file | grep "%cpp_options" > $tmp_mbuild 1439 while read line1 1440 do 1441 1442 if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]] 1443 then 1444 line="$line1" 1445 fi 1446 1447 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 1448 then 1449 # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING UND ALLE -D ENTFERNEN 1450 line="$line " 1451 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'` 1452 found=true 1453 fi 1454 1455 done < $tmp_mbuild 1456 copts_check="$copts_check -D__check -D__parallel" 1457 1417 1458 check_depository_path=${local_source_path}/../UTIL 1418 1459 cd $check_depository_path … … 1423 1464 rm -rf ${mainprog}_sources_check.tar 1424 1465 1425 copts_check="-cpp -D__parallel -D__check" 1426 make -f Makefile_check $make_options F90=$compiler_name_ser COPT="$copts_check" 1427 1466 make -f Makefile_check $make_options F90=$compiler_name_ser COPT="$copts_check" 1428 1467 tar -cf check_namelist_files.tar Makefile_check check_namelist_files.x *.f90 *.o *.mod 1429 1468 mv check_namelist_files.tar $check_depository_path
Note: See TracChangeset
for help on using the changeset viewer.