- Timestamp:
- 09/17/2009 22:42:59 (3 years ago)
- Location:
- branches/confman-1.9
- Files:
-
- 6 edited
-
. (modified) (1 prop)
-
confexport.in (modified) (1 diff)
-
confman.conf.5.in (modified) (1 diff)
-
confman.conf.in (modified) (1 diff)
-
confmancommon.sh.in (modified) (1 diff)
-
confmanlib.sh.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/confman-1.9
-
branches/confman-1.9/confexport.in
r368 r414 39 39 exit 1 40 40 fi 41 42 # This potentially changes the behavior for selecting the REPO_URI 43 CONF_EXPORT="true" 41 44 42 45 function print_help { -
branches/confman-1.9/confman.conf.5.in
r404 r414 83 83 .It CONF_EXPORT_MODE 84 84 The permissions, in octal format, for the 85 .It EXPORT_REPO_PROTOCOL, EXPORT_REPO_HOSTNAME, EXPORT_REPO_PATH 86 These options are analagous to their counterparts above (without the 87 EXPORT prefixes). Use these to tell 88 .Xr confexport 8 to look in an alternate location for the repository when 89 automated access is provided by a separate mechanism from the interactive 90 toolset. It can often be useful to have the repository accessible over 91 "svn+ssh://" in interactive use (e.g., 92 .Xr confman 5 ), but to have local "file://" access for 93 .Xr confexport 5 . These default to unset, in which case the repository 94 will be found using the REPO_* configurations. 85 95 .Xr confexport 8 86 96 export. Defaults to 0640. -
branches/confman-1.9/confman.conf.in
r404 r414 71 71 CONF_EXPORT_WORK_PATH="" 72 72 CONF_EXPORT_STYLE="repository" 73 EXPORT_REPO_PROTOCOL="" 74 EXPORT_REPO_HOSTNAME="" 75 EXPORT_REPO_PATH="" 73 76 CONF_SSH_KEY="/root/.ssh/id_rsa" 74 77 -
branches/confman-1.9/confmancommon.sh.in
r412 r414 122 122 fi 123 123 124 # Verify that required options have been set125 if [ "x${REPO_PROTOCOL}" = "xfile://" ] ; then126 MUST_SET="REPO_PROTOCOL REPO_PATH"127 else128 MUST_SET="REPO_PROTOCOL REPO_HOSTNAME REPO_PATH"129 fi130 131 for option in $MUST_SET ; do132 conf_verify_option_set $option133 done134 135 124 # Test if the specified group exists before setting folder groups 136 125 if ! [ -d "$REPO_DB" ] ; then -
branches/confman-1.9/confmanlib.sh.in
r412 r414 31 31 RECIPE_NAME="$(cat "$RECIPE_FILE" 2>/dev/null)" 32 32 WCOPY_DIRTY="false" 33 CONF_EXPORT="false" 33 34 34 35 VERSION='@VERSION@' … … 39 40 local proto="${REPO_PROTOCOL%:/*}" 40 41 local uri 42 43 # When we're running in export mode and the user has configured 44 # a separate REPO location for it 45 if ${CONF_EXPORT} && [ -n "$EXPORT_REPO_PATH" ] ; then 46 # Determine which options must be set 47 if [ "x${EXPORT_REPO_PROTOCOL}" = "xfile://" ] ; then 48 MUST_SET="EXPORT_REPO_PROTOCOL EXPORT_REPO_PATH" 49 else 50 MUST_SET="EXPORT_REPO_PROTOCOL EXPORT_REPO_HOSTNAME 51 EXPORT_REPO_PATH" 52 fi 53 REPO_PROTOCOL="$EXPORT_REPO_PROTOCOL" 54 REPO_HOSTNAME="$EXPORT_REPO_HOSTNAME" 55 REPO_PATH="$EXPORT_REPO_PATH" 56 else 57 # Determine which options must be set 58 if [ "x${REPO_PROTOCOL}" = "xfile://" ] ; then 59 MUST_SET="REPO_PROTOCOL REPO_PATH" 60 else 61 MUST_SET="REPO_PROTOCOL REPO_HOSTNAME REPO_PATH" 62 fi 63 fi 64 65 # Verify that required options have been set 66 for option in $MUST_SET ; do 67 conf_verify_option_set $option 68 done 41 69 42 70 case $proto in
Note: See TracChangeset
for help on using the changeset viewer.
