Ignore:
Timestamp:
Feb 14, 2007 1:53:31 AM (17 years ago)
Author:
raasch
Message:

html-documentation added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mbuild_new

    r1 r5  
    11#!/bin/ksh
    2 # mbuild - Programmuebersetzungsscript   Version:  @(#)MBUILD 1.0    07/02/07
     2# mbuild - Programmuebersetzungsscript   Version:  @(#)MBUILD 1.0    10/02/07
    33
    44     # Prozedur zur Uebersetzung von Programmteilen mittels make-Mechanismus
     
    7878     # 24/11/06 - Siggi - breva and levanto admitted
    7979     # 07/02/07 - Siggi - adapted for RIAM (neck)
     80     # 10/02/07 - Siggi - all hpmuk-related code removed
    8081
    8182
     
    152153     (berte)                    local_host=t3eb;;
    153154     (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;;
    155155     (gate)                     local_host=neck;;
    156156     (gfdl3.yonsei.ac.kr)       local_host=decalpha; local_addres=165.132.26.56;;
     
    206206
    207207
     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
    208301    # PRUEFEN, OB IN KONFIGURATIONSDATEI EIN HAUPTPROGRAMM
    209302    # VEREINBART WURDE
     
    222315    mainprog=`echo $line | cut -d" " -s -f2 | cut -d"." -f1`
    223316 fi
    224 
    225 
    226 
    227     # LOKALEN QUELLTEXTPFAD ERMITTELN.
    228     # ZUERST PRUEFEN, OB EIN GLOBALER QUELLTEXTPFAD FUER ALLE RECHNER
    229     # VEREINBART WURDE
    230  line=""
    231  grep "%source_path" $config_file  |  while read line
    232  do
    233     if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    234     then
    235        if [[ "$(echo $line | cut -d" " -s -f3)" = "" ]]
    236        then
    237           global_source_path=`echo $line | cut -d" " -s -f2`
    238        fi
    239     fi
    240  done
    241 
    242  line=""
    243  grep  " $local_host" $config_file | grep "%source_path"  |  while read line
    244  do
    245     if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    246     then
    247        local_source_path=`echo $line | cut -d" " -s -f2`
    248     fi
    249  done
    250 
    251  if [[ "$local_source_path" = "" ]]
    252  then
    253     if [[ "$global_source_path" != "" ]]
    254     then
    255        local_source_path=$global_source_path
    256     else
    257        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; exit
    261     fi
    262  fi
    263  eval local_source_path=$local_source_path
    264 
    265 
    266      # EBENSO PFAD FUER DAS MAKE-DEPOSITORY ERMITTELN
    267  line=""
    268  grep "%depository_path" $config_file  |  while read line
    269  do
    270     if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    271     then
    272        if [[ "$(echo $line | cut -d" " -s -f3)" = "" ]]
    273        then
    274           global_depository_path=`echo $line | cut -d" " -s -f2`
    275        fi
    276     fi
    277  done
    278 
    279  line=""
    280  grep  " $local_host" $config_file | grep "%depository_path"  |  while read line
    281  do
    282     if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    283     then
    284        local_depository_path=`echo $line | cut -d" " -s -f2`
    285     fi
    286  done
    287 
    288  if [[ "$local_depository_path" = "" ]]
    289  then
    290     if [[ "$global_depository_path" != "" ]]
    291     then
    292        local_depository_path=$global_depository_path
    293     else
    294        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; exit
    298     fi
    299  fi
    300  eval local_depository_path=$local_depository_path
    301317
    302318
     
    655671    netcdf_support=false
    656672    case  $remote_host  in
    657         (hpmuk)          remote_addres=130.75.105.19;;
    658673        (lcmuk)          remote_addres=130.75.105.3; cpp_options=""
    659674                         netcdf_support=true
     
    9981013          # BATCH-JOB PARAMETER SETZEN
    9991014       case  $remote_host  in
    1000            (hpmuk)          remote_addres=130.75.105.19;;
    10011015           (t3eb)           queue=berte; memory=60; cputime=1000; xoption="-X 0";;
    10021016           (t3eh)           queue=comp_t3e; memory=60; cputime=360;;
    10031017           (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;;
    10051019       esac
    10061020
Note: See TracChangeset for help on using the changeset viewer.