Changeset 37 for confman/confmanlib.sh


Ignore:
Timestamp:
03/29/2006 02:29:23 (6 years ago)
Author:
ccowart
Message:

Some syntax touchups, a couple extra wrappers to svn. Business.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • confman/confmanlib.sh

    r34 r37  
    218218 
    219219function 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 
    223224  svn rm $myfile 
    224   svn commit -m "Deleting $file from confman. --`whoami`" ${WORK_PATH}/${module} 
    225225} 
    226226 
    227227function 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="/" 
    234233  local directories=`echo "$directory" | sed 's:/: :g'` 
    235234  local dir 
     
    252251  svn rm ${WORK_PATH}/${module} 
    253252} 
     253 
     254function conf_mv { 
     255  local oldname=$1 
     256  local newname=$2 
     257  svn mv $oldname $newname 
     258} 
     259 
     260function conf_cp { 
     261  local oldname=$1 
     262  local newname=$2 
     263  svn cp $oldname $newname 
     264} 
     265 
     266function conf_diff { 
     267  local filename=$1 
     268  svn diff $filename 
     269} 
     270 
     271function conf_log { 
     272  local filename=$1 
     273  svn log $filename 
     274} 
     275 
    254276   
    255277 
Note: See TracChangeset for help on using the changeset viewer.