Changeset 5 for palm/trunk/SCRIPTS/mbuild_new
- Timestamp:
- Feb 14, 2007 1:53:31 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mbuild_new
r1 r5 1 1 #!/bin/ksh 2 # mbuild - Programmuebersetzungsscript Version: @(#)MBUILD 1.0 07/02/072 # mbuild - Programmuebersetzungsscript Version: @(#)MBUILD 1.0 10/02/07 3 3 4 4 # Prozedur zur Uebersetzung von Programmteilen mittels make-Mechanismus … … 78 78 # 24/11/06 - Siggi - breva and levanto admitted 79 79 # 07/02/07 - Siggi - adapted for RIAM (neck) 80 # 10/02/07 - Siggi - all hpmuk-related code removed 80 81 81 82 … … 152 153 (berte) local_host=t3eb;; 153 154 (bora|breva|gregale|irifi|levanto|maestro|orkan|ostria|quanero|scirocco) local_host=lcmuk;; 154 (argestes|caurus|caver|chinook|dschani|gharra|nevados|poniente|samun|twister|yalka) local_host=hpmuk;;155 155 (gate) local_host=neck;; 156 156 (gfdl3.yonsei.ac.kr) local_host=decalpha; local_addres=165.132.26.56;; … … 206 206 207 207 208 # LOKALEN QUELLTEXTPFAD ERMITTELN. 209 # ZUERST PRUEFEN, OB EIN GLOBALER QUELLTEXTPFAD FUER ALLE RECHNER 210 # VEREINBART WURDE. 211 # DAZU ZUNAECHST ALLE IN DER KONFIGURATIONSDATEI VEREINBARTEN GLOBALEN 212 # VARIABLEN SETZEN, WEIL DIESE EVTL. IN PFADNAMEN VERWENDET WERDEN 213 line="" 214 grep "%" $config_file | while read line 215 do 216 if [[ "$line" != "" && "$(echo $line | cut -d" " -s -f3)" = "" ]] 217 then 218 var=`echo $line | cut -d" " -s -f1 | cut -c2-` 219 value=`echo $line | cut -d" " -s -f2` 220 echo "*** export $var=$value" 221 eval export $var=$value 222 eval echo \" $var=\$$var \" 223 fi 224 done 225 226 # NUN PRUEFEN, OB EIN GLOBALER QUELLTEXTPFAD VEREINBART WURDE 227 line="" 228 grep "%source_path" $config_file | while read line 229 do 230 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 231 then 232 if [[ "$(echo $line | cut -d" " -s -f3)" = "" ]] 233 then 234 global_source_path=`echo $line | cut -d" " -s -f2` 235 fi 236 fi 237 done 238 239 line="" 240 grep " $local_host" $config_file | grep "%source_path" | while read line 241 do 242 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 243 then 244 local_source_path=`echo $line | cut -d" " -s -f2` 245 fi 246 done 247 248 if [[ "$local_source_path" = "" ]] 249 then 250 if [[ "$global_source_path" != "" ]] 251 then 252 local_source_path=$global_source_path 253 else 254 printf "\n +++ no source path found in configuration file" 255 printf "\n for local host \"$local_host\" " 256 printf "\n please set \"\%source_path\" in configuration file" 257 locat=config_file; exit 258 fi 259 fi 260 eval local_source_path=$local_source_path 261 262 263 # EBENSO PFAD FUER DAS MAKE-DEPOSITORY ERMITTELN 264 line="" 265 grep "%depository_path" $config_file | while read line 266 do 267 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 268 then 269 if [[ "$(echo $line | cut -d" " -s -f3)" = "" ]] 270 then 271 global_depository_path=`echo $line | cut -d" " -s -f2` 272 fi 273 fi 274 done 275 276 line="" 277 grep " $local_host" $config_file | grep "%depository_path" | while read line 278 do 279 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 280 then 281 local_depository_path=`echo $line | cut -d" " -s -f2` 282 fi 283 done 284 285 if [[ "$local_depository_path" = "" ]] 286 then 287 if [[ "$global_depository_path" != "" ]] 288 then 289 local_depository_path=$global_depository_path 290 else 291 printf "\n +++ no depository path found in configuration file" 292 printf "\n for local host \"$local_host\" " 293 printf "\n please set \"\%depository_path\" in configuration file" 294 locat=config_file; exit 295 fi 296 fi 297 eval local_depository_path=$local_depository_path 298 299 300 208 301 # PRUEFEN, OB IN KONFIGURATIONSDATEI EIN HAUPTPROGRAMM 209 302 # VEREINBART WURDE … … 222 315 mainprog=`echo $line | cut -d" " -s -f2 | cut -d"." -f1` 223 316 fi 224 225 226 227 # LOKALEN QUELLTEXTPFAD ERMITTELN.228 # ZUERST PRUEFEN, OB EIN GLOBALER QUELLTEXTPFAD FUER ALLE RECHNER229 # VEREINBART WURDE230 line=""231 grep "%source_path" $config_file | while read line232 do233 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]]234 then235 if [[ "$(echo $line | cut -d" " -s -f3)" = "" ]]236 then237 global_source_path=`echo $line | cut -d" " -s -f2`238 fi239 fi240 done241 242 line=""243 grep " $local_host" $config_file | grep "%source_path" | while read line244 do245 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]]246 then247 local_source_path=`echo $line | cut -d" " -s -f2`248 fi249 done250 251 if [[ "$local_source_path" = "" ]]252 then253 if [[ "$global_source_path" != "" ]]254 then255 local_source_path=$global_source_path256 else257 printf "\n +++ no source path found in configuration file"258 printf "\n for local host \"$local_host\" "259 printf "\n please set \"\%source_path\" in configuration file"260 locat=config_file; exit261 fi262 fi263 eval local_source_path=$local_source_path264 265 266 # EBENSO PFAD FUER DAS MAKE-DEPOSITORY ERMITTELN267 line=""268 grep "%depository_path" $config_file | while read line269 do270 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]]271 then272 if [[ "$(echo $line | cut -d" " -s -f3)" = "" ]]273 then274 global_depository_path=`echo $line | cut -d" " -s -f2`275 fi276 fi277 done278 279 line=""280 grep " $local_host" $config_file | grep "%depository_path" | while read line281 do282 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]]283 then284 local_depository_path=`echo $line | cut -d" " -s -f2`285 fi286 done287 288 if [[ "$local_depository_path" = "" ]]289 then290 if [[ "$global_depository_path" != "" ]]291 then292 local_depository_path=$global_depository_path293 else294 printf "\n +++ no depository path found in configuration file"295 printf "\n for local host \"$local_host\" "296 printf "\n please set \"\%depository_path\" in configuration file"297 locat=config_file; exit298 fi299 fi300 eval local_depository_path=$local_depository_path301 317 302 318 … … 655 671 netcdf_support=false 656 672 case $remote_host in 657 (hpmuk) remote_addres=130.75.105.19;;658 673 (lcmuk) remote_addres=130.75.105.3; cpp_options="" 659 674 netcdf_support=true … … 998 1013 # BATCH-JOB PARAMETER SETZEN 999 1014 case $remote_host in 1000 (hpmuk) remote_addres=130.75.105.19;;1001 1015 (t3eb) queue=berte; memory=60; cputime=1000; xoption="-X 0";; 1002 1016 (t3eh) queue=comp_t3e; memory=60; cputime=360;; 1003 1017 (t3ej2) queue=normal; memory=60; cputime=1000; xoption="-X 0";; 1004 ( hpmuk|t3ej5|ground.yonsei.ac.kr) printf "\n --- remote host \"$remote_host\" does not allow batch jobs"; continue;;1018 (t3ej5|ground.yonsei.ac.kr) printf "\n --- remote host \"$remote_host\" does not allow batch jobs"; continue;; 1005 1019 esac 1006 1020
Note: See TracChangeset
for help on using the changeset viewer.