cvsmkpatch

来自「cygwin, 著名的在win32下模拟unix操作系统的东东」· 代码 · 共 38 行

TXT
38
字号
#!/bin/bash -eif [ $# -ne 1 ]; then   echo "Usage: $0 base-tag"   echo "    where base-tag is the base branch the diff should start from"   echo "    (usually HEAD, but you should know...)"   exit 1fiif [ ! -f CVS/Root ] || [ ! -f CVS/Repository ]; then    echo "ERROR: The script must be run from a CVS working directory"    exit 1fiif [ -f CVS/Tag ]; then    localtag=`cat CVS/Tag|cut -c2-`else    echo "ERROR: The script can only be run from branches. Running"    echo "it from the HEAD version does not make sense."    exit 1firootdir=`cat CVS/Root|sed -e 's/.*://'`module=`cat CVS/Repository|sed -e "s#^$rootdir##"`mergefrom="$1"mergetag="Z-${localtag}_merge_${mergefrom}"ecvs() {    echo cvs $* >&2    cvs "$@"}o () {    echo "# $*..."}echo "Patch file generated `date` from"echo "CVS branch ${localtag}"echo "CVS repository: `cat CVS/Root`"echo "CVS module: $module"echoecvs -z9 -q rdiff -u -kk -r ${mergetag} -r ${localtag} ${module} | cleanpatch

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?