Changeset 260 for modipsl


Ignore:
Timestamp:
02/21/08 16:30:41 (16 years ago)
Author:
bellier
Message:

JB: add a refined sed command to avoid mismatch

with the -t option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modipsl/trunk/util/ins_make

    r249 r260  
    7373[[ ! -f "${MKTG}" ]] && { echo "${MKTG} unreachable ..."; exit 3; } 
    7474#- 
    75 W_XX=$(sed -n -e "s/^#-Q-  *\([^ ]*\).*$/\1/p" ${MKTG} | \ 
    76        sort -u | sed -e "/${x_t}/!d"); 
     75W_XX=$(sed -n -e "s/^#-Q-  *\([^ ]*\) .*$/ \1/p" ${MKTG} | \ 
     76       sort -u | sed -e "/ ${x_t}/!d" | sed -e "s/ *//"); 
    7777[[ '\?'"${W_XX}" != '\?'"${x_t}" ]] && \ 
    7878  { echo "Target_Host  "${x_t}"  not supported" 1>&2; exit 1; } 
Note: See TracChangeset for help on using the changeset viewer.