📄 kernel.patch.gen.sh
字号:
#!/bin/bash## RCSID $Id: kernel.patch.gen.sh,v 1.4 1999/04/06 04:54:30 rgb Exp $patchdir=`pwd`kernelsrc=/usr/src/linux[ "$1~" = "~" ] || kernelsrc=$1cd $kernelsrc# clean out destination file for all patch#echo "">$patchdir/all# find files to patch and loopfor i in `find . -name '*.preipsec'`do# strip off '.preipsec' suffixj=${i%.preipsec}# strip off './' prefixk=${j#\.\/}# single unified diff#diff -u $i $j >>$patchdir/all# convert '/' in filename to '.' to avoid subdirectoriessed -e 's/\//\./g' << EOI > /tmp/t$kEOIl=`cat /tmp/t`rm -f /tmp/t# *with* path from source root#echo do diff -u $i $j '>' $patchdir/$lecho found $iecho "RCSID \$Id: kernel.patch.gen.sh,v 1.4 1999/04/06 04:54:30 rgb Exp $" >$patchdir/$ldiff -u $i $j >>$patchdir/$ldone## $Log: kernel.patch.gen.sh,v $# Revision 1.4 1999/04/06 04:54:30 rgb# Fix/Add RCSID Id: and Log: bits to make PHMDs happy. This includes# patch shell fixes.##
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -