Changeset 90 for confman/confmanlib.sh
- Timestamp:
- 04/19/2006 14:01:22 (6 years ago)
- File:
-
- 1 edited
-
confman/confmanlib.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
confman/confmanlib.sh
r78 r90 106 106 function conf_install { 107 107 local module="$1" 108 local file= "$2"108 local file=`abspath $2` 109 109 local moduledir="${WORK_PATH}/$module" 110 110 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 111 119 112 120 # See if it even exists … … 319 327 } 320 328 321 322 329 function 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.
