Changeset 39 for confman/confman
- Timestamp:
- 03/29/2006 13:55:13 (6 years ago)
- File:
-
- 1 edited
-
confman/confman (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
confman/confman
r38 r39 537 537 function newdir { 538 538 local dir=$1 539 local response 539 local response module realpath 540 540 local mode=$DEFAULT_MODE 541 541 local owner=$DEFAULT_OWNER 542 542 local group=$DEFAULT_GROUP 543 543 local comment="dir" 544 # Ugh. This doesn't work when the function is called from import...545 # It assumes we're working in the working copy...546 544 local workdir=`abspath .` 547 545 if [ -z $1 ] ; then … … 550 548 551 549 # Find the "real" directory's path 552 dir="${workdir}/${dir}" 553 echo $dir 554 local module=`echo ${workdir#$WORK_PATH/} | sed -E 's:/([^/]+)/.*:\1:'` 555 echo $module 556 local realpath=${dir#${WORK_PATH}/${module}} 557 echo $realpath 550 if [[ ! $dir =~ "^\/" ]] ; then 551 dir="${workdir}/${dir}" 552 fi 553 module=`echo ${dir#$WORK_PATH} | sed -E 's:/([^/]+)/.*:\1:'` 554 realpath=${dir#${WORK_PATH}/${module}} 558 555 559 556 if [ -d $realpath ] ; then
Note: See TracChangeset
for help on using the changeset viewer.
