Changeset 4425 for palm/trunk/SCRIPTS/palmrun
- Timestamp:
- Feb 26, 2020 3:35:00 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palmrun
r4303 r4425 27 27 # ----------------- 28 28 # $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 29 33 # Abort if temporary working catalog cannot be created 30 34 # … … 256 260 execute_command="" 257 261 execution_error=false 258 fileconnection_file= trunk/SCRIPTS/.palm.iofiles262 fileconnection_file="" 259 263 global_revision="" 260 264 hostfile="" … … 457 461 458 462 459 # CHECK, IF USER PROVIDES OWN FILE CONNECTION FILE460 if [[ -f .palm.iofiles ]]461 then462 463 # CHECK VERSION MISMATCH464 # RESTART RUNS DON'T REQUIRE A CHECK, BECAUSE THEY USE A COPY OF THAT465 # FILE WHICH HAS ALREADY BEEN CHECKED WITHIN THE INITAL PALMRUN CALL466 if [[ $running_in_batch_mode != true && $restart_run != true ]]467 then468 if [[ $(head -n1 $fileconnection_file) != $(head -n1 .palm.iofiles) ]]469 then470 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 fi476 fi477 478 fileconnection_file=.palm.iofiles479 480 fi481 482 483 # CHECK, IF FILE CONNECTION FILE EXISTS484 if [[ ! -f $fileconnection_file ]]485 then486 printf "\n\n +++ file connection file: "487 printf "\n $fileconnection_file"488 printf "\n does not exist"489 locat=connect; exit490 fi491 492 493 463 # CHECK, IF THE ACTIVATION_STRING_LIST HAS BEEN GIVEN 494 464 if [[ "$activation_string_list" = "" ]] … … 705 675 fi 706 676 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 707 713 708 714
Note: See TracChangeset
for help on using the changeset viewer.