Changeset 47be2684 in flex_extract.git for setup_local.sh


Ignore:
Timestamp:
Oct 28, 2020, 10:28:24 AM (4 years ago)
Author:
Leopold Haimberger <leopold.haimberger@…>
Branches:
ctbto, dev
Children:
75db9b0
Parents:
697b8d0
Message:

Adaptations to allow for a system installation with separate user and system path. Updated documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup_local.sh

    r98f09d2 r47be2684  
    1010#    python installation script. It also does some checks to
    1111#    guarantee necessary parameters were set.
     12#
     13# @History:
     14#    Leopold Haimberger; Aug 2020
     15#       added new parameter for a system installation
     16#       (seperate executable and user directories)
    1217#
    1318# @Licence:
     
    2631# THE USER HAS TO SPECIFY THESE PARAMETERS
    2732#
    28 TARGET='local'
    29 MAKEFILE='makefile_local_gfortran'
     33TARGET='syslocal'
     34MAKEFILE='makefile_fast_anne'
    3035ECUID='<username>'
    3136ECGID='<groupID>'
    3237GATEWAY='<gatewayname>'
    3338DESTINATION='<name>@genericSftp'
    34 INSTALLDIR=None
     39INSTALLDIR=$HOME
     40SYSINSTALLDIR=../sys
    3541JOB_TEMPLATE=''
    3642CONTROLFILE='CONTROL_CERA'
     
    7682  parameterlist+=" --makefile=$MAKEFILE"
    7783fi
    78 if [ -n "$FLEXPARTDIR" ]; then # not empty
    79   parameterlist+=" --flexpartdir=$FLEXPARTDIR"
     84if [ -n "$INSTALLDIR" ]; then
     85  parameterlist+=" --installdir=$INSTALLDIR"
     86fi
     87if [ -n "$SYSINSTALLDIR" ]; then
     88  parameterlist+=" --sysinstalldir=$SYSINSTALLDIR"
    8089fi
    8190if [ -n "$JOB_TEMPLATE" ]; then
     
    9099
    91100$script $parameterlist
     101source ~/.bashrc
    92102
     103
     104
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG