Ignore:
Timestamp:
Mar 8, 2011, 1:56:48 PM (14 years ago)
Author:
rybkin
Message:

See C.L. 444

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/mgr/cmt_make_shlib_common.sh

    r469 r561  
    2929extra=$*
    3030
    31 ld=`${CMTROOT}/mgr/cmt show macro_value shlibbuilder -tag=${tag}`
    32 ldflags=`${CMTROOT}/mgr/cmt show macro_value shlibflags -tag=${tag}`
    33 suffix=`${CMTROOT}/mgr/cmt show macro_value shlibsuffix -tag=${tag}`
    34 libprefix=`${CMTROOT}/mgr/cmt show macro_value library_prefix -tag=${tag}`
    35 libsuffix=`${CMTROOT}/mgr/cmt show macro_value library_suffix -tag=${tag}`
     31if [ "${CMTDEBUG:-}" ]; then
     32unset CMTDEBUG
     33set -x
     34fi
     35
     36ld=`${CMTROOT}/mgr/cmt show macro_value shlibbuilder -tag=${tag}` || exit
     37ldflags=`${CMTROOT}/mgr/cmt show macro_value shlibflags -tag=${tag}` || exit
     38suffix=`${CMTROOT}/mgr/cmt show macro_value shlibsuffix -tag=${tag}` || exit
     39libprefix=`${CMTROOT}/mgr/cmt show macro_value library_prefix -tag=${tag}` || exit
     40libsuffix=`${CMTROOT}/mgr/cmt show macro_value library_suffix -tag=${tag}` || exit
    3641
    3742libname=${libprefix}${lib}${libsuffix}
     
    4247
    4348if test "${bin}" = "" ; then
    44   bin=`${CMTROOT}/mgr/cmt show macro_value bin -tag=${tag}`
     49  bin=`${CMTROOT}/mgr/cmt show macro_value bin -tag=${tag}` || exit
    4550fi
    4651
    4752here=`/bin/pwd`
    48 cd ${bin}
     53cd ${bin} || exit
    4954
    50 /bin/rm -f ${libname}.${suffix}
     55/bin/rm -f ${libname}.${suffix} || exit
    5156
    5257result=0
     
    6166
    6267  (cd ${temp_shlib}; ar x ../${libname}.a)
     68  result=$?
     69  if [ ${result} -ne 0 ]; then
     70      \rm -rf ${temp_shlib}
     71      cd ${here}
     72      exit ${result}
     73  fi
    6374
    6475  #
Note: See TracChangeset for help on using the changeset viewer.