Changeset 315
- Timestamp:
- 05/02/2009 18:54:54 (3 years ago)
- File:
-
- 1 edited
-
trunk/confadmin.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/confadmin.in
r310 r315 39 39 fi 40 40 41 # Let's make sure that only you can read your working copy 42 # Have to make this less restrictive due to NFS home dirs. 43 ${NFS_HACK:-false} && umask 022 || umask 027 41 function repo_setup { 42 local short_dirs="/trunk /tags /branches /trunk/checkpoints" 43 short_dirs="${short_dirs} /trunk/meta /trunk/meta/recipes" 44 local dir dirs 45 local msg="Initial confman directory setup." 46 if svn ls "${REPO_URI}/trunk/checkpoints" >/dev/null 2>&1 ; then 47 echo "It looks like this repository has already been setup." >&2 48 exit 1 49 fi 50 for dir in ${short_dirs} ; do 51 dirs="${dirs} ${REPO_URI}/${dir}" 52 done 53 svn mkdir -m "$msg" ${dirs} 54 } 44 55 45 56 # Debug mode? … … 59 70 subcommand=$1 60 71 shift 61 trap "conf_cleanExit" EXIT 72 62 73 case $subcommand in 63 help ) print_help "$@" ; trap EXIT; exit 0 ;; 74 help ) print_help "$@" ; exit 0 ;; 75 setup ) repo_setup ;; 64 76 * ) print_usage 1 ;; 65 77 esac 66 78 67 trap EXIT 68 exit 79 exit 0 69 80 70 81 # vim:ts=4
Note: See TracChangeset
for help on using the changeset viewer.
