Changeset 452
- Timestamp:
- 10/04/2009 23:46:14 (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
confman.in (modified) (1 diff)
-
confmanlib.sh.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/confman.in
r451 r452 744 744 745 745 function rmmod { 746 local module=$1747 if [ -z $module ] ; then748 print_usage 1749 fi750 conf_lock_wcopy751 conf_rmmod $module752 conf_unlock_wcopy746 if [ -z "$*" ] ; then 747 print_usage 1 748 else 749 conf_lock_wcopy 750 conf_remove_modules "$@" || exit 1 751 conf_unlock_wcopy 752 fi 753 753 } 754 754 -
trunk/confmanlib.sh.in
r451 r452 713 713 } 714 714 715 function conf_remove_modules { 716 local module 717 local rc=0 718 719 for module in "$@"; do 720 conf_rmmod "$module" || rc=1 721 done 722 723 return $rc 724 } 725 715 726 function conf_rmmod { 716 local module=$1 717 @SVN@ rm ${WORK_PATH}/${module} 718 @SVN@ rm ${WORK_PATH}/${REPO_CHECKPTS}/${module} 727 local module="$1" 728 local dir 729 local rc=0 730 731 for dir in ${WORK_PATH}/{,${REPO_CHECKPTS}/}${module}; do 732 if ! [ -d "$dir" ]; then 733 echo "No such directory: $dir" >&2 734 rc=1 735 else 736 @SVN@ rm $dir || rc=1 737 fi 738 done 739 740 return $rc 719 741 } 720 742
Note: See TracChangeset
for help on using the changeset viewer.
