📄 isip_co.sh
字号:
#! @SH@#------------------------------------------------------------------------------## File: $signal/util/file/rcs/co.sh## The CO function checks out RCS files. ##------------------------------------------------------------------------------#------------------------------------------------------------------------------# Define Help Message#------------------------------------------------------------------------------#display_help_message () {# sf $signal/util/file/rcs/co.help# exit 0;#}#------------------------------------------------------------------------------# Check For An Argument Requesting Help -- Display Help Message And Exit#------------------------------------------------------------------------------#if (test $# -eq 0) then# display_help_message;#else # for arg do# if (test "$arg" = "-help") then# display_help_message;# fi# done#fi#------------------------------------------------------------------------------# make sure that this directory is not managed by CVS#------------------------------------------------------------------------------for arg do dir=`dirname $arg`; cvs_check=`ls $dir | grep CVS`; if (test "x$cvs_check" != "x") then # give the user an error message # echo "Files in this directory are managed by CVS, not RCS. Please read" echo "organizational policy on the proper use of revision control software." # report this infraction to help@isip # mail help@isip.msstate.edu <<EOFSubject: CVS/RCS INFRACTIONUser $USER tried to rcs the following file(s), one or more of which ismaintained by CVS: files = $* current directory = `pwd`Please take appropriate action to preserve repository integrity.-RCS/CVS watchdogEOF exit 1 fidone#------------------------------------------------------------------------------# RCS Checkout With Lock Set#------------------------------------------------------------------------------co -l $*#------------------------------------------------------------------------------# Exit Gracefully#------------------------------------------------------------------------------exit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -