Changeset 4425 for palm


Ignore:
Timestamp:
Feb 26, 2020 3:35:00 PM (11 months ago)
Author:
raasch
Message:

hard coded path to the fileconnection file replaced by a path that is based on the source path which has been given in the configuration file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmrun

    r4303 r4425  
    2727# -----------------
    2828# $Id$
     29# hard coded path to the fileconnection file replaced by a path that is based on
     30# the source path which has been given in the configuration file
     31#
     32# 4303 2019-11-25 08:55:18Z raasch
    2933# Abort if temporary working catalog cannot be created
    3034#
     
    256260 execute_command=""
    257261 execution_error=false
    258  fileconnection_file=trunk/SCRIPTS/.palm.iofiles
     262 fileconnection_file=""
    259263 global_revision=""
    260264 hostfile=""
     
    457461
    458462
    459     # CHECK, IF USER PROVIDES OWN FILE CONNECTION FILE
    460  if [[ -f .palm.iofiles ]]
    461  then
    462 
    463        # CHECK VERSION MISMATCH
    464        # RESTART RUNS DON'T REQUIRE A CHECK, BECAUSE THEY USE A COPY OF THAT
    465        # FILE WHICH HAS ALREADY BEEN CHECKED WITHIN THE INITAL PALMRUN CALL
    466     if [[ $running_in_batch_mode != true  &&  $restart_run != true ]]
    467     then
    468        if [[ $(head -n1 $fileconnection_file) != $(head -n1 .palm.iofiles) ]]
    469        then
    470           printf "\n\n  +++ WARNING: A file connection file has been found in your"
    471           printf "\n               working directory, but its revision does not match"
    472           printf "\n               the revision of the default (trunk) version."
    473           printf "\n               You may need to update your connection file"
    474           printf "\n               \"${working_directory}/.palm.iofiles\" !"
    475        fi
    476     fi
    477 
    478     fileconnection_file=.palm.iofiles
    479 
    480  fi
    481 
    482 
    483     # CHECK, IF FILE CONNECTION FILE EXISTS
    484  if [[ ! -f $fileconnection_file ]]
    485  then
    486     printf "\n\n  +++ file connection file: "
    487     printf "\n           $fileconnection_file"
    488     printf "\n      does not exist"
    489     locat=connect; exit 
    490  fi
    491 
    492 
    493463    # CHECK, IF THE ACTIVATION_STRING_LIST HAS BEEN GIVEN
    494464 if [[ "$activation_string_list" = "" ]]
     
    705675 fi
    706676
     677
     678    # SET THE DEFAULT FILE CONNECTION FILE (WHICH IS IN THE REPOSITORY)
     679 fileconnection_file=${source_path}/../SCRIPTS/.palm.iofiles
     680
     681    # CHECK, IF USER PROVIDES OWN FILE CONNECTION FILE
     682 if [[ -f .palm.iofiles ]]
     683 then
     684
     685       # CHECK VERSION MISMATCH
     686       # RESTART RUNS DON'T REQUIRE A CHECK, BECAUSE THEY USE A COPY OF THAT
     687       # FILE WHICH HAS ALREADY BEEN CHECKED WITHIN THE INITAL PALMRUN CALL
     688    if [[ $running_in_batch_mode != true  &&  $restart_run != true ]]
     689    then
     690       if [[ $(head -n1 $fileconnection_file) != $(head -n1 .palm.iofiles) ]]
     691       then
     692          printf "\n\n  +++ WARNING: A file connection file has been found in your"
     693          printf "\n               working directory, but its revision does not match"
     694          printf "\n               the revision of the default (trunk) version."
     695          printf "\n               You may need to update your connection file"
     696          printf "\n               \"${working_directory}/.palm.iofiles\" !"
     697       fi
     698    fi
     699
     700    fileconnection_file=.palm.iofiles
     701
     702 fi
     703
     704
     705    # CHECK, IF FILE CONNECTION FILE EXISTS
     706 if [[ ! -f $fileconnection_file ]]
     707 then
     708    printf "\n\n  +++ file connection file: "
     709    printf "\n           $fileconnection_file"
     710    printf "\n      does not exist"
     711    locat=connect; exit 
     712 fi
    707713
    708714
Note: See TracChangeset for help on using the changeset viewer.