Changeset 78
- Timestamp:
- 04/14/2006 19:38:33 (6 years ago)
- Location:
- confman
- Files:
-
- 3 edited
-
confman (modified) (3 diffs)
-
confmandoc.sh (modified) (2 diffs)
-
confmanlib.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
confman/confman
r76 r78 58 58 # Set a default editor 59 59 if [ -z ${EDITOR} ] ; then 60 if `which vim 2>/dev/null`; then60 if which vim 2>/dev/null ; then 61 61 EDITOR="vim" 62 62 else … … 113 113 else 114 114 print_usage 1 115 fi 116 } 117 118 function revert { 119 if [ -z $* ] ; then 120 print_usage 1 121 else 122 conf_revert $* 115 123 fi 116 124 } … … 608 616 inst $* 609 617 ;; 610 remove|re *|rm )618 remove|rem*|rm ) 611 619 remove $* 620 ;; 621 rev* ) 622 revert $* 612 623 ;; 613 624 rmmod ) -
confman/confmandoc.sh
r76 r78 26 26 $MYNAME rmmod module 27 27 $MYNAME import module livefile 28 $MYNAME install working_copy 28 $MYNAME install workingfile [ workingfile ... ] 29 $MYNAME ls [ workingfile | workingdirectory ] 29 30 $MYNAME rm workingfile 30 31 $MYNAME cp src_working_copy dest_working_copy 31 32 $MYNAME mv src_working_copy dest_working_copy 32 33 $MYNAME mkdir workingdirectory 33 $MYNAME ls [ workingfile | workingdirectory ]34 $MYNAME revert workingfile 34 35 $MYNAME chown owner [ workingfile | workingdirectory ] 35 36 $MYNAME chgrp group [ workingfile | workingdirectory ] … … 201 202 202 203 Usage: 203 $MYNAME install working _file [ working_file ... ]204 $MYNAME install workingfile [ workingfile ... ] 204 205 205 206 The install subcommand allows you to roll out a single file from your working 206 207 copy. 208 209 EOF 210 ;; 211 rev* ) 212 cat <<EOF 213 $MYNAME provides a command-line interface to Rescomp's server 214 configuration management system. 215 216 Usage: 217 $MYNAME revert workingfile [ workingfile ... ] 218 219 The revert subcommand gives you the opportunity to revert to the file before 220 you started making changes to it. 207 221 208 222 EOF -
confman/confmanlib.sh
r76 r78 37 37 function conf_update_tree { 38 38 svn update ${WORK_PATH} 39 } 40 41 # Revert a working file 42 function conf_revert { 43 svn revert $* 39 44 } 40 45
Note: See TracChangeset
for help on using the changeset viewer.
