Changeset 37 for confman/confmanlib.sh
- Timestamp:
- 03/29/2006 02:29:23 (6 years ago)
- File:
-
- 1 edited
-
confman/confmanlib.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
confman/confmanlib.sh
r34 r37 218 218 219 219 function conf_rm_file { 220 local module=$1 221 local file=$2 222 local myfile="${WORK_PATH}/${module}${file}" 220 local file=$1 221 if [ ! -f $file ] ; then 222 echo "Error: No such file or directory: $file" >&2 223 fi 223 224 svn rm $myfile 224 svn commit -m "Deleting $file from confman. --`whoami`" ${WORK_PATH}/${module}225 225 } 226 226 227 227 function conf_mkdir { 228 local module=$1 229 local directory=$2 230 local owner=$3 231 local group=$4 232 local mode=$5 233 local workdir="${WORK_PATH}/${module}" 228 local directory=$1 229 local owner=$2 230 local group=$3 231 local mode=$4 232 local workdir="/" 234 233 local directories=`echo "$directory" | sed 's:/: :g'` 235 234 local dir … … 252 251 svn rm ${WORK_PATH}/${module} 253 252 } 253 254 function conf_mv { 255 local oldname=$1 256 local newname=$2 257 svn mv $oldname $newname 258 } 259 260 function conf_cp { 261 local oldname=$1 262 local newname=$2 263 svn cp $oldname $newname 264 } 265 266 function conf_diff { 267 local filename=$1 268 svn diff $filename 269 } 270 271 function conf_log { 272 local filename=$1 273 svn log $filename 274 } 275 254 276 255 277
Note: See TracChangeset
for help on using the changeset viewer.
