Changeset 78


Ignore:
Timestamp:
04/14/2006 19:38:33 (6 years ago)
Author:
ccowart
Message:

vim bugfix

Location:
confman
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • confman/confman

    r76 r78  
    5858# Set a default editor 
    5959if [ -z ${EDITOR} ] ; then 
    60         if `which vim 2>/dev/null` ; then 
     60        if which vim 2>/dev/null ; then 
    6161                EDITOR="vim" 
    6262        else 
     
    113113        else 
    114114                print_usage 1 
     115        fi 
     116} 
     117 
     118function revert { 
     119        if [ -z $* ] ; then 
     120                print_usage 1 
     121        else 
     122                conf_revert $* 
    115123        fi 
    116124} 
     
    608616                inst $* 
    609617                ;; 
    610         remove|re*|rm ) 
     618        remove|rem*|rm ) 
    611619                remove $* 
     620                ;; 
     621        rev* ) 
     622                revert $* 
    612623                ;; 
    613624        rmmod ) 
  • confman/confmandoc.sh

    r76 r78  
    2626  $MYNAME rmmod module 
    2727  $MYNAME import module livefile 
    28   $MYNAME install working_copy 
     28  $MYNAME install workingfile [ workingfile ... ] 
     29  $MYNAME ls [ workingfile | workingdirectory ] 
    2930  $MYNAME rm workingfile 
    3031  $MYNAME cp src_working_copy dest_working_copy 
    3132  $MYNAME mv src_working_copy dest_working_copy 
    3233  $MYNAME mkdir workingdirectory 
    33   $MYNAME ls [ workingfile | workingdirectory ] 
     34  $MYNAME revert workingfile 
    3435  $MYNAME chown owner [ workingfile | workingdirectory ]  
    3536  $MYNAME chgrp group [ workingfile | workingdirectory ]  
     
    201202 
    202203Usage: 
    203   $MYNAME install working_file [ working_file ... ] 
     204  $MYNAME install workingfile [ workingfile ... ] 
    204205 
    205206The install subcommand allows you to roll out a single file from your working 
    206207copy. 
     208 
     209EOF 
     210;; 
     211          rev* ) 
     212cat <<EOF 
     213$MYNAME provides a command-line interface to Rescomp's server 
     214configuration management system. 
     215 
     216Usage: 
     217  $MYNAME revert workingfile [ workingfile ... ] 
     218 
     219The revert subcommand gives you the opportunity to revert to the file before 
     220you started making changes to it. 
    207221 
    208222EOF 
  • confman/confmanlib.sh

    r76 r78  
    3737function conf_update_tree { 
    3838  svn update ${WORK_PATH} 
     39} 
     40 
     41# Revert a working file 
     42function conf_revert { 
     43  svn revert $* 
    3944} 
    4045 
Note: See TracChangeset for help on using the changeset viewer.