Changeset 339
- Timestamp:
- 06/22/2009 17:24:12 (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
confadmin.in (modified) (1 diff)
-
confmanlib.sh.in (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/confadmin.in
r325 r339 52 52 local dir dirs 53 53 local msg="Initial confman directory setup." 54 if @SVN@ ls " ${REPO_URI}/trunk/checkpoints" >/dev/null 2>&1 ; then54 if @SVN@ ls "`conf_repo_uri`/trunk/checkpoints" >/dev/null 2>&1 ; then 55 55 echo "It looks like this repository has already been setup." >&2 56 56 exit 1 57 57 fi 58 58 for dir in ${short_dirs} ; do 59 dirs="${dirs} ${REPO_URI}/${dir}"59 dirs="${dirs} `conf_repo_uri`/${dir}" 60 60 done 61 61 @SVN@ mkdir -m "$msg" ${dirs} -
trunk/confmanlib.sh.in
r329 r339 27 27 # This file provides shell libraries to confman 28 28 29 REPO_URI="${REPO_PROTOCOL}${REPO_HOSTNAME}${REPO_PATH}"30 REPO_TRUNK="${REPO_PROTOCOL}${REPO_HOSTNAME}${REPO_PATH}/trunk"31 29 REPO_ACTION="${REPO_DB}/last_action" 32 30 REPO_SYNC_STATE="${REPO_DB}/state" … … 40 38 REPO_VERSION="2" 41 39 REPO_VERSION_FILE="${METADIR}/rversion" 40 41 # Prints the repository URI 42 function conf_repo_uri { 43 local uri 44 45 case ${REPO_PROTOCOL} in 46 file) 47 uri="${REPO_PROTOCOL}${REPO_PATH}" 48 ;; 49 *) 50 uri="${REPO_PROTOCOL}${REPO_HOSTNAME}${REPO_PATH}" 51 ;; 52 esac 53 54 echo $uri 55 } 42 56 43 57 # Checks out the conf tree if we don't already have it. Updates it if we do. … … 52 66 chmod 700 ${WORK_PATH} 53 67 54 @SVN@ checkout ${REPO_TRUNK}${WORK_PATH}68 @SVN@ checkout `conf_repo_uri`/trunk ${WORK_PATH} 55 69 else 56 70 @SVN@ update ${WORK_PATH}
Note: See TracChangeset
for help on using the changeset viewer.
