?? kernel.patch.gen.sh
字號:
#!/bin/bash## RCSID $Id: kernel.patch.gen.sh,v 1.1.1.1 2002/09/05 03:13:18 ken 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.1.1.1 2002/09/05 03:13:18 ken Exp $" >$patchdir/$ldiff -u $i $j >>$patchdir/$ldone## $Log: kernel.patch.gen.sh,v $# Revision 1.1.1.1 2002/09/05 03:13:18 ken# 1.98b## 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 + -