Changeset 89


Ignore:
Timestamp:
02/03/14 18:32:57 (10 years ago)
Author:
pinsard
Message:

fix thanks to coding rules

Location:
trunk
Files:
6 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ircaam_profile.sh

    r88 r89  
    111111system=$(uname) 
    112112case "${system}" in 
    113    AIX|IRIX64) 
    114       echo " www : no specific posix checking" 
    115    ;; 
    116    *) 
    117     set -o posix 
    118    ;; 
     113    AIX|IRIX64) 
     114        echo " www : no specific posix checking" 
     115    ;; 
     116    *) 
     117        set -o posix 
     118    ;; 
    119119esac 
    120120unset system 
     
    131131while [ ${#} -gt 0 ] 
    132132do 
    133    case ${1} in 
    134       -d) 
    135          # directory for application choosen by user (see svn checkout command used) 
    136          directory=${2} 
    137          shift 
    138       ;; 
    139       -i) 
    140          # directory for inputs choosen by user 
    141          indir=${2} 
    142          shift 
    143       ;; 
    144       -o) 
    145          # directory for outputs choosen by user 
    146          outdir=${2} 
    147          shift 
    148       ;; 
    149       -t) 
    150          # directory for temporary outputs choosen by user 
    151          tempdir=${2} 
    152          shift 
    153       ;; 
    154       *) 
    155          # other choice 
    156          echo "eee : unknown option ${1}" 
    157          echo "${usage}" 
    158          # nb : no exit because this file should be launched by login process 
    159       ;; 
    160    esac 
    161    # next flag 
    162    shift 
     133    case ${1} in 
     134        -d) 
     135            # directory for application choosen by user (see svn checkout command used) 
     136            directory=${2} 
     137            shift 
     138        ;; 
     139        -i) 
     140            # directory for inputs choosen by user 
     141            indir=${2} 
     142            shift 
     143        ;; 
     144        -o) 
     145            # directory for outputs choosen by user 
     146            outdir=${2} 
     147            shift 
     148        ;; 
     149        -t) 
     150            # directory for temporary outputs choosen by user 
     151            tempdir=${2} 
     152            shift 
     153        ;; 
     154        *) 
     155            # other choice 
     156            echo "eee : unknown option ${1}" 
     157            echo "${usage}" 
     158            # nb : no exit because this file should be launched by login process 
     159        ;; 
     160    esac 
     161    # next flag 
     162    shift 
    163163done 
    164164unset usage 
     
    167167if [ ! -d ${directory} ] 
    168168then 
    169    echo " eee : ${directory} not found" 
    170    # nb : no exit because this file should be launched by login process 
     169    echo " eee : ${directory} not found" 
     170    # nb : no exit because this file should be launched by login process 
    171171fi 
    172172# 
     
    174174if [ ! -x ${directory} ] 
    175175then 
    176    echo " eee : ${directory} not reachable" 
    177    # nb : no exit because this file should be launched by login process 
     176    echo " eee : ${directory} not reachable" 
     177    # nb : no exit because this file should be launched by login process 
    178178fi 
    179179# 
     
    189189if [ ${test_path} -ne 0 ] 
    190190then 
    191    PATH=${suppath}:${PATH} 
    192    export PATH 
     191    PATH=${suppath}:${PATH} 
     192    export PATH 
    193193else 
    194    # option bavarde oui/non pas encore implantée ++ 
    195    echo "${command} : iii : ${suppath} already in \${PATH}" 
     194    # option bavarde oui/non pas encore implantée ++ 
     195    echo "${command} : iii : ${suppath} already in \${PATH}" 
    196196fi 
    197197unset test_path 
     
    205205if [ ${test_path} -ne 0 ] 
    206206then 
    207    PATH=${suppath}:${PATH} 
    208    export PATH 
     207    PATH=${suppath}:${PATH} 
     208    export PATH 
    209209else 
    210    # option bavarde oui/non pas encore implantée ++ 
    211    echo "${command} : iii : ${suppath} already in \${PATH}" 
     210    # option bavarde oui/non pas encore implantée ++ 
     211    echo "${command} : iii : ${suppath} already in \${PATH}" 
    212212fi 
    213213unset test_path 
     
    221221if [ ${test_manpath} -ne 0 ] 
    222222then 
    223    MANPATH=${suppath}:${MANPATH} 
    224    export MANPATH 
     223    MANPATH=${suppath}:${MANPATH} 
     224    export MANPATH 
    225225else 
    226    # option bavarde oui/non pas encore implantée ++ 
    227    echo "${command} : iii : ${suppath} already in \${MANPATH}" 
     226    # option bavarde oui/non pas encore implantée ++ 
     227    echo "${command} : iii : ${suppath} already in \${MANPATH}" 
    228228fi 
    229229unset test_manpath 
     
    235235if [ ! -d ${IRCAAM_LOG} ] 
    236236then 
    237    mkdir -p ${IRCAAM_LOG} 
    238    status=${?} 
    239    if [ ${status} -ne 0 ] 
    240    then 
    241       echo "${command} : eee : can not create \${IRCAAM_LOG}" 
    242       # nb : no exit because this file should be launched by login process 
    243    else 
    244       echo "${command} : iii : creation of \${IRCAAM_LOG}" 
    245    fi 
    246    unset status 
     237    mkdir -p ${IRCAAM_LOG} 
     238    status=${?} 
     239    if [ ${status} -ne 0 ] 
     240    then 
     241        echo "${command} : eee : can not create \${IRCAAM_LOG}" 
     242        # nb : no exit because this file should be launched by login process 
     243    else 
     244        echo "${command} : iii : creation of \${IRCAAM_LOG}" 
     245    fi 
     246    unset status 
    247247fi 
    248248# check for permission on IRCAAM_LOG 
    249249if [ ! -x ${IRCAAM_LOG} ] 
    250250then 
    251    echo " eee : ${IRCAAM_LOG} not reachable" 
    252    # nb : no exit because this file should be launched by login process 
     251    echo " eee : ${IRCAAM_LOG} not reachable" 
     252    # nb : no exit because this file should be launched by login process 
    253253fi 
    254254# 
     
    256256if [ ! -w ${IRCAAM_LOG} ] 
    257257then 
    258    echo " eee : ${IRCAAM_LOG} not writable" 
    259    # nb : no exit because this file shouldreachable be launched by login process 
     258    echo " eee : ${IRCAAM_LOG} not writable" 
     259    # nb : no exit because this file shouldreachable be launched by login process 
    260260fi 
    261261# 
     
    269269if [ ! -d ${IRCAAM_ID} ] 
    270270then 
    271   mkdir -p ${IRCAAM_ID} 
    272   echo "${command} : iii : creation of \${IRCAAM_ID}" 
     271    mkdir -p ${IRCAAM_ID} 
     272    echo "${command} : iii : creation of \${IRCAAM_ID}" 
    273273fi 
    274274# check for permission on IRCAAM_ID 
    275275if [ ! -x ${IRCAAM_ID} ] 
    276276then 
    277    echo " eee : ${IRCAAM_ID} not reachable" 
    278    # nb : no exit because this file should be launched by login process 
     277    echo " eee : ${IRCAAM_ID} not reachable" 
     278    # nb : no exit because this file should be launched by login process 
    279279fi 
    280280# 
     
    284284if [ ! -d ${IRCAAM_OD} ] 
    285285then 
    286    mkdir -p ${IRCAAM_OD} 
    287    echo "${command} : iii : creation of \${IRCAAM_OD}" 
     286    mkdir -p ${IRCAAM_OD} 
     287    echo "${command} : iii : creation of \${IRCAAM_OD}" 
    288288fi 
    289289# check for permission on IRCAAM_OD 
    290290if [ ! -x ${IRCAAM_OD} ] 
    291291then 
    292  echo " eee : ${IRCAAM_OD} not reachable" 
    293  # nb : no exit because this file should be launched by login process 
     292    echo " eee : ${IRCAAM_OD} not reachable" 
     293    # nb : no exit because this file should be launched by login process 
    294294fi 
    295295if [ ! -w ${IRCAAM_OD} ] 
    296296then 
    297  echo " eee : ${IRCAAM_OD} not writable" 
    298  # nb : no exit because this file should be launched by login process 
     297    echo " eee : ${IRCAAM_OD} not writable" 
     298    # nb : no exit because this file should be launched by login process 
    299299fi 
    300300# 
  • trunk/src/refdataget.sh

    r82 r89  
    4242# 
    4343# If you are working on LOCEAN machine and you don't have any reference data, 
    44 # you just have to run this tool :: 
    45 # 
    46 #  $ refdataget.sh 
    47 # 
    48 # And look at log file with :: 
    49 # 
    50 #  $ tlogd.sh refdataget 
     44# you just have to run this tool : 
     45# 
     46# .. code-block:: bash 
     47# 
     48#    refdataget.sh 
     49# 
     50# And look at log file with : 
     51# 
     52# .. code-block:: bash 
     53# 
     54#    tlogd.sh refdataget 
    5155# 
    5256# and of course on files in ${IRCAAM_ID}. 
Note: See TracChangeset for help on using the changeset viewer.