Changeset 78 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
Mar 29, 2007 5:17:18 AM (18 years ago)
Author:
raasch
Message:

new option -G for mrun to transfer global revision number to batch jobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r76 r78  
    112112     #                     output
    113113     # 16/03/07 - Siggi  - adjustments for lctit
     114     # 29/03/07 - Siggi  - global revision transfered to batch job by new
     115     #                     option -G
    114116
    115117
     
    150152 fname=test
    151153 fromhost=""
     154 global_revision=""
    152155 host=""
    153156 host_file=""
     
    370373       (D)   cpp_opts="$cpp_opts $OPTARG"; mc="$mc -D$OPTARG";;
    371374       (f)   filetransfer_protocol=$OPTARG; mc="$mc -f$OPTARG";;
     375       (G)   global_revision=$OPTARG; mc="$mc -G'$OPTARG'";;
    372376       (F)   job_on_file="-D"; mc="$mc -F";;
    373377       (h)   host=$OPTARG; mc="$mc -h$OPTARG";;
     
    878882
    879883
     884    # GLOBALE REVISIONSNUMMER ERMITTELN (FORTSETZUNGSLAEUFEN WIRD DIESE
     885    # DURCH OPTION -G MITGETEILT)
     886 if [[ "$global_revision" = "" ]]
     887 then
     888    global_revision=`svnversion $source_path  2>/dev/null`
     889    global_revision="Rev: $global_revision"
     890 fi
     891
    880892
    881893    # NOCHMAL PRUEFEN, OB AUF REMOTE-MASCHINE GERECHNET WERDEN SOLL
     
    26882700       # NAMELIST-DATEI MIT WERTEN VON ENVIRONMENT-VARIABLEN ERZEUGEN (ZU
    26892701       # LESEN VON PALM)
    2690        # DAZU VORHER DIE "GLOBAL REVISION" VON SUBVERSION ERMITTELN, FALLS
    2691        # DIE SOURCEN UNTER SUBVERSION-KONTROLLE STEHEN
    2692     global_revision=`svnversion $source_path`
    2693     global_revision="Rev: $global_revision"
    2694 
    26952702    cat  >  ENVPAR  <<  %%END%%
    26962703 &envpar  run_identifier = '$fname', host = '$localhost',
     
    37493756    mrun_com="$mrun_script_name -a $afname -c $config_file -d $fname -f $filetransfer_protocol -h $host -H $fromhost -m $memory -t $cpumax -q $queue -R $return_addres -U $return_username -u $remote_username"
    37503757    [[ "$cpp_opts" != "" ]]       &&  mrun_com=${mrun_com}" -D \"$cpp_opts\""
     3758    [[ "$global_revision" != "" ]]  &&  mrun_com=${mrun_com}" -G $global_revision"
    37513759    [[ $do_compile = true ]]      &&  mrun_com=${mrun_com}" -s \"$source_list\""
    37523760    [[ "$input_list" != "" ]]     &&  mrun_com=${mrun_com}" -i \"$input_list\""
Note: See TracChangeset for help on using the changeset viewer.