📄 cvsmkbranch
字号:
#!/bin/sh -eif [ $# -ne 1 ] || [ ! -f CVS/Repository ]; then echo "Usage: $0 branchname" echo "" echo "Creates a new branch from the current working directory" echo "" exit 1fiif [ -f CVS/Tag ]; then basetag=`cat CVS/Tag|cut -c2-`else basetag=HEADfirootdir=`cat CVS/Root|sed -e 's/.*://'`module=`cat CVS/Repository|sed -e "s!^$rootdir!!"`branch=`echo $1|sed -e 's/\./_/g'`workdir=../`echo $branch|sed -e's/_/./g'`if [ -d ../$workdir ]; then echo "Error! ../$workdir already exists" exit 1ficp -rp . $workdir &mergetag="Z-${branch}_merge_${basetag}"cvs -z9 -q rtag -r $basetag -b $branch $modulecvs -z9 -q rtag -r $branch $mergetag $modulewaitcd $workdircvs -z9 update -P -d -r $branch
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -