⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 difftree.sh

📁 PSP开发环境(Linux) 包含PSPLINK 请自行选择需要安装的库及源代码
💻 SH
字号:
#!/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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -