Changeset 90 for confman/confmanlib.sh


Ignore:
Timestamp:
04/19/2006 14:01:22 (6 years ago)
Author:
ccowart
Message:

Singularity support for the inst function. See Bug #4204

File:
1 edited

Legend:

Unmodified
Added
Removed
  • confman/confmanlib.sh

    r78 r90  
    106106function conf_install { 
    107107  local module="$1" 
    108   local file="$2" 
     108  local file=`abspath $2` 
    109109  local moduledir="${WORK_PATH}/$module" 
    110110  local livefile=`echo "$file" | sed -E "s:${WORK_PATH}/[^/]+::"` 
     111  local pathmodule=`echo "$file" | sed -E "s:${WORK_PATH}/([^/]+).*:\1:"` 
     112  local suffix 
     113  livefile=`echo "$livefile" | sed -E "s:-${pathmodule}$::"` 
     114  if [[ $SINGULARITIES =~ $livefile ]] ; then 
     115          suffix="-${module}" 
     116  fi 
     117  livefile="${livefile}${suffix}" 
     118 
    111119 
    112120  # See if it even exists 
     
    319327} 
    320328 
    321    
    322  
     329function conf_cleanexit { 
     330  rm -f /tmp/confman* 
     331 
     332  # And in case we got an interrupt during a rollout, we still want the 
     333  # permissions here to be in a consistent state. 
     334  chmod 700 ${WORK_PATH} 
     335 
     336  # And this clears any locks we may have created on our working copy: 
     337  svn cleanup ${WORK_PATH} 
     338 
     339  if [ -z $1 ] ; then 
     340        exit 1 
     341  else 
     342        exit $1 
     343  fi 
     344 
     345 
     346 
Note: See TracChangeset for help on using the changeset viewer.