Changeset 34 for confman/confmanlib.sh
- Timestamp:
- 03/28/2006 21:22:28 (6 years ago)
- File:
-
- 1 edited
-
confman/confmanlib.sh (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
confman/confmanlib.sh
r32 r34 53 53 livedir="${LIVE_ROOT}${livedir}" 54 54 if [ ! -d $livedir ] ; then 55 local owner=`conf_get_prop ${ module} ${directory} owner`56 local group=`conf_get_prop ${ module} ${directory} group`57 local mode=`conf_get_prop ${ module} ${directory} mode`55 local owner=`conf_get_prop ${directory} owner` 56 local group=`conf_get_prop ${directory} group` 57 local mode=`conf_get_prop ${directory} mode` 58 58 local opts="-d -o $owner -g $group -m $mode" 59 59 local cmd="sudo install $opts $livedir" … … 64 64 for file in `find $moduledir -type f | grep -v "\.svn"` ; do 65 65 local livefile=`echo "$file" | sed "s:$moduledir::"` 66 local owner=`conf_get_prop ${ module} ${file} owner`67 local group=`conf_get_prop ${ module} ${file} group`68 local mode=`conf_get_prop ${ module} ${file} mode`66 local owner=`conf_get_prop ${file} owner` 67 local group=`conf_get_prop ${file} group` 68 local mode=`conf_get_prop ${file} mode` 69 69 local opts="-Sp -o $owner -g $group -m $mode" 70 70 local cmd="sudo install $opts $file ${LIVE_ROOT}$livefile" … … 81 81 local module=`echo ${file#$WORK_PATH} | sed -E 's:/([^/]+)/.*:\1:'` 82 82 local livefile=`echo ${file#$WORK_PATH} | sed -E 's:/([^/]+)/:/:'` 83 local owner=`conf_get_prop ${ module} ${file} owner`84 local group=`conf_get_prop ${ module} ${file} group`85 local mode=`conf_get_prop ${ module} ${file} mode`86 local comment=`conf_get_prop ${ module} ${file} comment`83 local owner=`conf_get_prop ${file} owner` 84 local group=`conf_get_prop ${file} group` 85 local mode=`conf_get_prop ${file} mode` 86 local comment=`conf_get_prop ${file} comment` 87 87 echo -e "$mode\t$owner\t$group\t$comment\t\t$livefile" 88 88 } … … 100 100 myfile="${WORK_PATH}/${layer}/${file}-${layer}" 101 101 if [ -f $myfile ] ; then 102 owner=`conf_get_prop ${ layer} ${myfile} owner`103 group=`conf_get_prop ${ layer} ${myfile} group`104 mode=`conf_get_prop ${ layer} ${myfile} mode`105 comment=`conf_get_prop ${ layer} ${myfile} comment`102 owner=`conf_get_prop ${myfile} owner` 103 group=`conf_get_prop ${myfile} group` 104 mode=`conf_get_prop ${myfile} mode` 105 comment=`conf_get_prop ${myfile} comment` 106 106 msg="This portion controled under the ${layer} module." 107 107 echo "${comment} $msg" >> $tmpfile … … 173 173 # This function will print the value of the specified property to STDOUT 174 174 function conf_get_prop { 175 local module=$1 176 local file=$2 177 local prop=$3 175 local file=$1 176 local prop=$2 178 177 svn propget "confman:${prop}" ${file} 179 178 } … … 181 180 # This function will set the value of the specified property. 182 181 function conf_set_prop { 183 local module=$1 184 local file=$2 185 local prop=$3 186 local value=$4 182 local file=$1 183 local prop=$2 184 local value=$3 187 185 svn propset "confman:${prop}" "${value}" ${file} 188 186 } … … 213 211 svn add $myfile 214 212 svn ps svn:keywords "Id" $myfile 215 conf_set_prop $m odule $myfile owner $owner216 conf_set_prop $m odule $myfile group $group217 conf_set_prop $m odule $myfile mode $mode218 conf_set_prop $m odule $myfile comment "$comment"213 conf_set_prop $myfile owner $owner 214 conf_set_prop $myfile group $group 215 conf_set_prop $myfile mode $mode 216 conf_set_prop $myfile comment "$comment" 219 217 } 220 218 … … 242 240 echo svn mkdir ${workdir} 243 241 svn mkdir ${workdir} 244 conf_set_prop $ module $workdir owner $owner245 conf_set_prop $ module $workdir group $group246 conf_set_prop $ module $workdir mode $mode247 conf_set_prop $ module $workdir comment "dir"242 conf_set_prop $workdir owner $owner 243 conf_set_prop $workdir group $group 244 conf_set_prop $workdir mode $mode 245 conf_set_prop $workdir comment "dir" 248 246 fi 249 247 done
Note: See TracChangeset
for help on using the changeset viewer.
