difftree.sh.svn-base
来自「PSP开发环境(Linux) 包含PSPLINK 请自行选择需要安装的库及源」· SVN-BASE 代码 · 共 34 行
SVN-BASE
34 行
#!/bin/sh## difftree.sh - Tree Diffing Script## Copyright (C) 2001 Paul Mundt <lethal@chaoticdreams.org>## A simple shell script for diffing a drop in tree against a# stock kernel tree. A patch is generated that covers the# differences between the files in the drop-in tree and the# files (whether existant or not) in the stock tree.## Released under the terms of the GNU GPL v2#[ "$#" -ne "2" ] && echo "Usage: $0 <old tree> <new tree>" && exit 1CPWD=`which pwd`ODIR=`$CPWD`cd $1 || exit 1LDIR=`$CPWD`echo -n "Building file list ... "LIST=`find * \( -type d -name CVS -o -name .svn -prune \) -o -type f -print | sort`echo -e "done."cd ${ODIR}PATCH=patch-`basename $1`-`basename $2`-`date +%s`.diffrm -f $PATCHecho -n "Generating patch ..... "for file in $LIST; do diff -burN $2/$file $1/$file >> $PATCH 2> /dev/nulldoneecho -e "done."
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?